| /** |
| * Autogenerated by Thrift Compiler (0.9.0) |
| * |
| * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
| * @generated |
| */ |
| #include "TCLIService.h" |
| |
| namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { |
| |
| uint32_t TCLIService_OpenSession_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_OpenSession_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_OpenSession_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_OpenSession_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_OpenSession_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_OpenSession_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_OpenSession_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CloseSession_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CloseSession_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_CloseSession_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseSession_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetInfo_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetInfo_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetInfo_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetInfo_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_ExecuteStatement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTypeInfo_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetCatalogs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetSchemas_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetSchemas_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetSchemas_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetSchemas_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTables_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTables_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetTables_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetTableTypes_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetColumns_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetColumns_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetColumns_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetColumns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetFunctions_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetFunctions_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetFunctions_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetFunctions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetOperationStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CancelOperation_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CancelOperation_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_CancelOperation_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelOperation_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CloseOperation_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CloseOperation_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_CloseOperation_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CloseOperation_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetResultSetMetadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_FetchResults_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_FetchResults_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_FetchResults_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_FetchResults_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_GetDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_CancelDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 1: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->req.read(iprot); |
| this->__isset.req = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_args"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += this->req.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| uint32_t xfer = 0; |
| xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_pargs"); |
| |
| xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); |
| xfer += (*(this->req)).write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += this->success.read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_result::write(::apache::thrift::protocol::TProtocol* oprot) const { |
| |
| uint32_t xfer = 0; |
| |
| xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_result"); |
| |
| if (this->__isset.success) { |
| xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); |
| xfer += this->success.write(oprot); |
| xfer += oprot->writeFieldEnd(); |
| } |
| xfer += oprot->writeFieldStop(); |
| xfer += oprot->writeStructEnd(); |
| return xfer; |
| } |
| |
| uint32_t TCLIService_RenewDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { |
| |
| uint32_t xfer = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TType ftype; |
| int16_t fid; |
| |
| xfer += iprot->readStructBegin(fname); |
| |
| using ::apache::thrift::protocol::TProtocolException; |
| |
| |
| while (true) |
| { |
| xfer += iprot->readFieldBegin(fname, ftype, fid); |
| if (ftype == ::apache::thrift::protocol::T_STOP) { |
| break; |
| } |
| switch (fid) |
| { |
| case 0: |
| if (ftype == ::apache::thrift::protocol::T_STRUCT) { |
| xfer += (*(this->success)).read(iprot); |
| this->__isset.success = true; |
| } else { |
| xfer += iprot->skip(ftype); |
| } |
| break; |
| default: |
| xfer += iprot->skip(ftype); |
| break; |
| } |
| xfer += iprot->readFieldEnd(); |
| } |
| |
| xfer += iprot->readStructEnd(); |
| |
| return xfer; |
| } |
| |
| void TCLIServiceClient::OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) |
| { |
| send_OpenSession(req); |
| recv_OpenSession(_return); |
| } |
| |
| void TCLIServiceClient::send_OpenSession(const TOpenSessionReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_OpenSession_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_OpenSession(TOpenSessionResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("OpenSession") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_OpenSession_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "OpenSession failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) |
| { |
| send_CloseSession(req); |
| recv_CloseSession(_return); |
| } |
| |
| void TCLIServiceClient::send_CloseSession(const TCloseSessionReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_CloseSession_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_CloseSession(TCloseSessionResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("CloseSession") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_CloseSession_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseSession failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) |
| { |
| send_GetInfo(req); |
| recv_GetInfo(_return); |
| } |
| |
| void TCLIServiceClient::send_GetInfo(const TGetInfoReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetInfo_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetInfo(TGetInfoResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetInfo") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetInfo_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetInfo failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) |
| { |
| send_ExecuteStatement(req); |
| recv_ExecuteStatement(_return); |
| } |
| |
| void TCLIServiceClient::send_ExecuteStatement(const TExecuteStatementReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_ExecuteStatement_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_ExecuteStatement(TExecuteStatementResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("ExecuteStatement") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_ExecuteStatement_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "ExecuteStatement failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) |
| { |
| send_GetTypeInfo(req); |
| recv_GetTypeInfo(_return); |
| } |
| |
| void TCLIServiceClient::send_GetTypeInfo(const TGetTypeInfoReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetTypeInfo_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetTypeInfo(TGetTypeInfoResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetTypeInfo") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetTypeInfo_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTypeInfo failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) |
| { |
| send_GetCatalogs(req); |
| recv_GetCatalogs(_return); |
| } |
| |
| void TCLIServiceClient::send_GetCatalogs(const TGetCatalogsReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetCatalogs_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetCatalogs(TGetCatalogsResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetCatalogs") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetCatalogs_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetCatalogs failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) |
| { |
| send_GetSchemas(req); |
| recv_GetSchemas(_return); |
| } |
| |
| void TCLIServiceClient::send_GetSchemas(const TGetSchemasReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetSchemas_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetSchemas(TGetSchemasResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetSchemas") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetSchemas_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetSchemas failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetTables(TGetTablesResp& _return, const TGetTablesReq& req) |
| { |
| send_GetTables(req); |
| recv_GetTables(_return); |
| } |
| |
| void TCLIServiceClient::send_GetTables(const TGetTablesReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetTables_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetTables(TGetTablesResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetTables") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetTables_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTables failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) |
| { |
| send_GetTableTypes(req); |
| recv_GetTableTypes(_return); |
| } |
| |
| void TCLIServiceClient::send_GetTableTypes(const TGetTableTypesReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetTableTypes_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetTableTypes(TGetTableTypesResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetTableTypes") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetTableTypes_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTableTypes failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) |
| { |
| send_GetColumns(req); |
| recv_GetColumns(_return); |
| } |
| |
| void TCLIServiceClient::send_GetColumns(const TGetColumnsReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetColumns_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetColumns(TGetColumnsResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetColumns") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetColumns_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetColumns failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) |
| { |
| send_GetFunctions(req); |
| recv_GetFunctions(_return); |
| } |
| |
| void TCLIServiceClient::send_GetFunctions(const TGetFunctionsReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetFunctions_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetFunctions(TGetFunctionsResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetFunctions") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetFunctions_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetFunctions failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) |
| { |
| send_GetOperationStatus(req); |
| recv_GetOperationStatus(_return); |
| } |
| |
| void TCLIServiceClient::send_GetOperationStatus(const TGetOperationStatusReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetOperationStatus_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetOperationStatus(TGetOperationStatusResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetOperationStatus") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetOperationStatus_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetOperationStatus failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) |
| { |
| send_CancelOperation(req); |
| recv_CancelOperation(_return); |
| } |
| |
| void TCLIServiceClient::send_CancelOperation(const TCancelOperationReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_CancelOperation_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_CancelOperation(TCancelOperationResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("CancelOperation") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_CancelOperation_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelOperation failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) |
| { |
| send_CloseOperation(req); |
| recv_CloseOperation(_return); |
| } |
| |
| void TCLIServiceClient::send_CloseOperation(const TCloseOperationReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_CloseOperation_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_CloseOperation(TCloseOperationResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("CloseOperation") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_CloseOperation_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseOperation failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) |
| { |
| send_GetResultSetMetadata(req); |
| recv_GetResultSetMetadata(_return); |
| } |
| |
| void TCLIServiceClient::send_GetResultSetMetadata(const TGetResultSetMetadataReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetResultSetMetadata_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetResultSetMetadata(TGetResultSetMetadataResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetResultSetMetadata") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetResultSetMetadata_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetResultSetMetadata failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) |
| { |
| send_FetchResults(req); |
| recv_FetchResults(_return); |
| } |
| |
| void TCLIServiceClient::send_FetchResults(const TFetchResultsReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_FetchResults_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_FetchResults(TFetchResultsResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("FetchResults") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_FetchResults_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "FetchResults failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) |
| { |
| send_GetDelegationToken(req); |
| recv_GetDelegationToken(_return); |
| } |
| |
| void TCLIServiceClient::send_GetDelegationToken(const TGetDelegationTokenReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_GetDelegationToken_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_GetDelegationToken(TGetDelegationTokenResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("GetDelegationToken") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_GetDelegationToken_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetDelegationToken failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) |
| { |
| send_CancelDelegationToken(req); |
| recv_CancelDelegationToken(_return); |
| } |
| |
| void TCLIServiceClient::send_CancelDelegationToken(const TCancelDelegationTokenReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_CancelDelegationToken_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_CancelDelegationToken(TCancelDelegationTokenResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("CancelDelegationToken") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_CancelDelegationToken_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelDelegationToken failed: unknown result"); |
| } |
| |
| void TCLIServiceClient::RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) |
| { |
| send_RenewDelegationToken(req); |
| recv_RenewDelegationToken(_return); |
| } |
| |
| void TCLIServiceClient::send_RenewDelegationToken(const TRenewDelegationTokenReq& req) |
| { |
| int32_t cseqid = 0; |
| oprot_->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); |
| |
| TCLIService_RenewDelegationToken_pargs args; |
| args.req = &req; |
| args.write(oprot_); |
| |
| oprot_->writeMessageEnd(); |
| oprot_->getTransport()->writeEnd(); |
| oprot_->getTransport()->flush(); |
| } |
| |
| void TCLIServiceClient::recv_RenewDelegationToken(TRenewDelegationTokenResp& _return) |
| { |
| |
| int32_t rseqid = 0; |
| std::string fname; |
| ::apache::thrift::protocol::TMessageType mtype; |
| |
| iprot_->readMessageBegin(fname, mtype, rseqid); |
| if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { |
| ::apache::thrift::TApplicationException x; |
| x.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| throw x; |
| } |
| if (mtype != ::apache::thrift::protocol::T_REPLY) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| if (fname.compare("RenewDelegationToken") != 0) { |
| iprot_->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| } |
| TCLIService_RenewDelegationToken_presult result; |
| result.success = &_return; |
| result.read(iprot_); |
| iprot_->readMessageEnd(); |
| iprot_->getTransport()->readEnd(); |
| |
| if (result.__isset.success) { |
| // _return pointer has now been filled |
| return; |
| } |
| throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "RenewDelegationToken failed: unknown result"); |
| } |
| |
| bool TCLIServiceProcessor::dispatchCall(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, const std::string& fname, int32_t seqid, void* callContext) { |
| ProcessMap::iterator pfn; |
| pfn = processMap_.find(fname); |
| if (pfn == processMap_.end()) { |
| iprot->skip(::apache::thrift::protocol::T_STRUCT); |
| iprot->readMessageEnd(); |
| iprot->getTransport()->readEnd(); |
| ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::UNKNOWN_METHOD, "Invalid method name: '"+fname+"'"); |
| oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return true; |
| } |
| (this->*(pfn->second))(seqid, iprot, oprot, callContext); |
| return true; |
| } |
| |
| void TCLIServiceProcessor::process_OpenSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.OpenSession", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.OpenSession"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.OpenSession"); |
| } |
| |
| TCLIService_OpenSession_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.OpenSession", bytes); |
| } |
| |
| TCLIService_OpenSession_result result; |
| try { |
| iface_->OpenSession(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.OpenSession"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.OpenSession"); |
| } |
| |
| oprot->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.OpenSession", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_CloseSession(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.CloseSession", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CloseSession"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.CloseSession"); |
| } |
| |
| TCLIService_CloseSession_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.CloseSession", bytes); |
| } |
| |
| TCLIService_CloseSession_result result; |
| try { |
| iface_->CloseSession(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.CloseSession"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.CloseSession"); |
| } |
| |
| oprot->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.CloseSession", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetInfo", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetInfo"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetInfo"); |
| } |
| |
| TCLIService_GetInfo_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetInfo", bytes); |
| } |
| |
| TCLIService_GetInfo_result result; |
| try { |
| iface_->GetInfo(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetInfo"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetInfo"); |
| } |
| |
| oprot->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetInfo", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_ExecuteStatement(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.ExecuteStatement", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.ExecuteStatement"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.ExecuteStatement"); |
| } |
| |
| TCLIService_ExecuteStatement_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.ExecuteStatement", bytes); |
| } |
| |
| TCLIService_ExecuteStatement_result result; |
| try { |
| iface_->ExecuteStatement(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.ExecuteStatement"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.ExecuteStatement"); |
| } |
| |
| oprot->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.ExecuteStatement", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetTypeInfo(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetTypeInfo", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTypeInfo"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetTypeInfo"); |
| } |
| |
| TCLIService_GetTypeInfo_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetTypeInfo", bytes); |
| } |
| |
| TCLIService_GetTypeInfo_result result; |
| try { |
| iface_->GetTypeInfo(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetTypeInfo"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetTypeInfo"); |
| } |
| |
| oprot->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetTypeInfo", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetCatalogs(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetCatalogs", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetCatalogs"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetCatalogs"); |
| } |
| |
| TCLIService_GetCatalogs_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetCatalogs", bytes); |
| } |
| |
| TCLIService_GetCatalogs_result result; |
| try { |
| iface_->GetCatalogs(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetCatalogs"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetCatalogs"); |
| } |
| |
| oprot->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetCatalogs", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetSchemas(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetSchemas", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetSchemas"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetSchemas"); |
| } |
| |
| TCLIService_GetSchemas_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetSchemas", bytes); |
| } |
| |
| TCLIService_GetSchemas_result result; |
| try { |
| iface_->GetSchemas(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetSchemas"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetSchemas"); |
| } |
| |
| oprot->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetSchemas", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetTables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetTables", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTables"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetTables"); |
| } |
| |
| TCLIService_GetTables_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetTables", bytes); |
| } |
| |
| TCLIService_GetTables_result result; |
| try { |
| iface_->GetTables(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetTables"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetTables"); |
| } |
| |
| oprot->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetTables", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetTableTypes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetTableTypes", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetTableTypes"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetTableTypes"); |
| } |
| |
| TCLIService_GetTableTypes_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetTableTypes", bytes); |
| } |
| |
| TCLIService_GetTableTypes_result result; |
| try { |
| iface_->GetTableTypes(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetTableTypes"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetTableTypes"); |
| } |
| |
| oprot->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetTableTypes", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetColumns(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetColumns", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetColumns"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetColumns"); |
| } |
| |
| TCLIService_GetColumns_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetColumns", bytes); |
| } |
| |
| TCLIService_GetColumns_result result; |
| try { |
| iface_->GetColumns(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetColumns"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetColumns"); |
| } |
| |
| oprot->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetColumns", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetFunctions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetFunctions", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetFunctions"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetFunctions"); |
| } |
| |
| TCLIService_GetFunctions_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetFunctions", bytes); |
| } |
| |
| TCLIService_GetFunctions_result result; |
| try { |
| iface_->GetFunctions(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetFunctions"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetFunctions"); |
| } |
| |
| oprot->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetFunctions", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetOperationStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetOperationStatus", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetOperationStatus"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetOperationStatus"); |
| } |
| |
| TCLIService_GetOperationStatus_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetOperationStatus", bytes); |
| } |
| |
| TCLIService_GetOperationStatus_result result; |
| try { |
| iface_->GetOperationStatus(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetOperationStatus"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetOperationStatus"); |
| } |
| |
| oprot->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetOperationStatus", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_CancelOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.CancelOperation", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CancelOperation"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.CancelOperation"); |
| } |
| |
| TCLIService_CancelOperation_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.CancelOperation", bytes); |
| } |
| |
| TCLIService_CancelOperation_result result; |
| try { |
| iface_->CancelOperation(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.CancelOperation"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.CancelOperation"); |
| } |
| |
| oprot->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.CancelOperation", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_CloseOperation(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.CloseOperation", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CloseOperation"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.CloseOperation"); |
| } |
| |
| TCLIService_CloseOperation_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.CloseOperation", bytes); |
| } |
| |
| TCLIService_CloseOperation_result result; |
| try { |
| iface_->CloseOperation(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.CloseOperation"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.CloseOperation"); |
| } |
| |
| oprot->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.CloseOperation", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetResultSetMetadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetResultSetMetadata", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetResultSetMetadata"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetResultSetMetadata"); |
| } |
| |
| TCLIService_GetResultSetMetadata_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetResultSetMetadata", bytes); |
| } |
| |
| TCLIService_GetResultSetMetadata_result result; |
| try { |
| iface_->GetResultSetMetadata(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetResultSetMetadata"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetResultSetMetadata"); |
| } |
| |
| oprot->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetResultSetMetadata", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_FetchResults(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.FetchResults", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.FetchResults"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.FetchResults"); |
| } |
| |
| TCLIService_FetchResults_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.FetchResults", bytes); |
| } |
| |
| TCLIService_FetchResults_result result; |
| try { |
| iface_->FetchResults(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.FetchResults"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.FetchResults"); |
| } |
| |
| oprot->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.FetchResults", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_GetDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.GetDelegationToken", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.GetDelegationToken"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.GetDelegationToken"); |
| } |
| |
| TCLIService_GetDelegationToken_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.GetDelegationToken", bytes); |
| } |
| |
| TCLIService_GetDelegationToken_result result; |
| try { |
| iface_->GetDelegationToken(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.GetDelegationToken"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.GetDelegationToken"); |
| } |
| |
| oprot->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.GetDelegationToken", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_CancelDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.CancelDelegationToken", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.CancelDelegationToken"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.CancelDelegationToken"); |
| } |
| |
| TCLIService_CancelDelegationToken_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.CancelDelegationToken", bytes); |
| } |
| |
| TCLIService_CancelDelegationToken_result result; |
| try { |
| iface_->CancelDelegationToken(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.CancelDelegationToken"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.CancelDelegationToken"); |
| } |
| |
| oprot->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.CancelDelegationToken", bytes); |
| } |
| } |
| |
| void TCLIServiceProcessor::process_RenewDelegationToken(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) |
| { |
| void* ctx = NULL; |
| if (this->eventHandler_.get() != NULL) { |
| ctx = this->eventHandler_->getContext("TCLIService.RenewDelegationToken", callContext); |
| } |
| ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "TCLIService.RenewDelegationToken"); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preRead(ctx, "TCLIService.RenewDelegationToken"); |
| } |
| |
| TCLIService_RenewDelegationToken_args args; |
| args.read(iprot); |
| iprot->readMessageEnd(); |
| uint32_t bytes = iprot->getTransport()->readEnd(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postRead(ctx, "TCLIService.RenewDelegationToken", bytes); |
| } |
| |
| TCLIService_RenewDelegationToken_result result; |
| try { |
| iface_->RenewDelegationToken(result.success, args.req); |
| result.__isset.success = true; |
| } catch (const std::exception& e) { |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->handlerError(ctx, "TCLIService.RenewDelegationToken"); |
| } |
| |
| ::apache::thrift::TApplicationException x(e.what()); |
| oprot->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_EXCEPTION, seqid); |
| x.write(oprot); |
| oprot->writeMessageEnd(); |
| oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| return; |
| } |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->preWrite(ctx, "TCLIService.RenewDelegationToken"); |
| } |
| |
| oprot->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_REPLY, seqid); |
| result.write(oprot); |
| oprot->writeMessageEnd(); |
| bytes = oprot->getTransport()->writeEnd(); |
| oprot->getTransport()->flush(); |
| |
| if (this->eventHandler_.get() != NULL) { |
| this->eventHandler_->postWrite(ctx, "TCLIService.RenewDelegationToken", bytes); |
| } |
| } |
| |
| ::boost::shared_ptr< ::apache::thrift::TProcessor > TCLIServiceProcessorFactory::getProcessor(const ::apache::thrift::TConnectionInfo& connInfo) { |
| ::apache::thrift::ReleaseHandler< TCLIServiceIfFactory > cleanup(handlerFactory_); |
| ::boost::shared_ptr< TCLIServiceIf > handler(handlerFactory_->getHandler(connInfo), cleanup); |
| ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new TCLIServiceProcessor(handler)); |
| return processor; |
| } |
| }}}}} // namespace |
| |