read method
Reads the TObject from the given input protocol.
Implementation
read(TProtocol iprot) {
TField field;
iprot.readStructBegin();
while (true) {
field = iprot.readFieldBegin();
if (field.type == TType.STOP) {
break;
}
switch (field.id) {
case KILL_QUERIES:
if (field.type == TType.MAP) {
{
TMap _map382 = iprot.readMapBegin();
this.kill_queries = new Map<int, Set<int>>();
for (int _i383 = 0; _i383 < _map382.length; ++_i383) {
int _key384;
Set<int> _val385;
_key384 = iprot.readI64();
{
TSet _set386 = iprot.readSetBegin();
_val385 = new Set<int>();
for (int _i387 = 0; _i387 < _set386.length; ++_i387) {
int _elem388;
_elem388 = iprot.readI64();
_val385.add(_elem388);
}
iprot.readSetEnd();
}
this.kill_queries?[_key384] = _val385;
}
iprot.readMapEnd();
}
} else {
TProtocolUtil.skip(iprot, field.type);
}
break;
default:
TProtocolUtil.skip(iprot, field.type);
break;
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
validate();
}