in src/main/cpp/proxy_types.cpp [3122:3281]
uint32_t ActiveScan::read(::apache::thrift::protocol::TProtocol* iprot) {
::apache::thrift::protocol::TInputRecursionTracker tracker(*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_STRING) {
xfer += iprot->readString(this->client);
this->__isset.client = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
xfer += iprot->readString(this->user);
this->__isset.user = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 3:
if (ftype == ::apache::thrift::protocol::T_STRING) {
xfer += iprot->readString(this->table);
this->__isset.table = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 4:
if (ftype == ::apache::thrift::protocol::T_I64) {
xfer += iprot->readI64(this->age);
this->__isset.age = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 5:
if (ftype == ::apache::thrift::protocol::T_I64) {
xfer += iprot->readI64(this->idleTime);
this->__isset.idleTime = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 6:
if (ftype == ::apache::thrift::protocol::T_I32) {
int32_t ecast122;
xfer += iprot->readI32(ecast122);
this->type = static_cast<ScanType::type>(ecast122);
this->__isset.type = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 7:
if (ftype == ::apache::thrift::protocol::T_I32) {
int32_t ecast123;
xfer += iprot->readI32(ecast123);
this->state = static_cast<ScanState::type>(ecast123);
this->__isset.state = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 8:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->extent.read(iprot);
this->__isset.extent = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 9:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->columns.clear();
uint32_t _size124;
::apache::thrift::protocol::TType _etype127;
xfer += iprot->readListBegin(_etype127, _size124);
this->columns.resize(_size124);
uint32_t _i128;
for (_i128 = 0; _i128 < _size124; ++_i128)
{
xfer += this->columns[_i128].read(iprot);
}
xfer += iprot->readListEnd();
}
this->__isset.columns = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 10:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->iterators.clear();
uint32_t _size129;
::apache::thrift::protocol::TType _etype132;
xfer += iprot->readListBegin(_etype132, _size129);
this->iterators.resize(_size129);
uint32_t _i133;
for (_i133 = 0; _i133 < _size129; ++_i133)
{
xfer += this->iterators[_i133].read(iprot);
}
xfer += iprot->readListEnd();
}
this->__isset.iterators = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 11:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->authorizations.clear();
uint32_t _size134;
::apache::thrift::protocol::TType _etype137;
xfer += iprot->readListBegin(_etype137, _size134);
this->authorizations.resize(_size134);
uint32_t _i138;
for (_i138 = 0; _i138 < _size134; ++_i138)
{
xfer += iprot->readBinary(this->authorizations[_i138]);
}
xfer += iprot->readListEnd();
}
this->__isset.authorizations = true;
} else {
xfer += iprot->skip(ftype);
}
break;
default:
xfer += iprot->skip(ftype);
break;
}
xfer += iprot->readFieldEnd();
}
xfer += iprot->readStructEnd();
return xfer;
}