in src/main/java/org/apache/flink/benchmark/thrift/MyPojo.java [1226:1284]
public void read(org.apache.thrift.protocol.TProtocol prot, MyPojo struct)
throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot =
(org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(8);
if (incoming.get(0)) {
struct.id = iprot.readI32();
struct.setIdIsSet(true);
}
if (incoming.get(1)) {
struct.name = iprot.readString();
struct.setNameIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list10 =
new org.apache.thrift.protocol.TList(
org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.operationName = new java.util.ArrayList<java.lang.String>(_list10.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem11;
for (int _i12 = 0; _i12 < _list10.size; ++_i12) {
_elem11 = iprot.readString();
struct.operationName.add(_elem11);
}
}
struct.setOperationNameIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.thrift.protocol.TList _list13 =
new org.apache.thrift.protocol.TList(
org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.operations = new java.util.ArrayList<MyOperation>(_list13.size);
@org.apache.thrift.annotation.Nullable MyOperation _elem14;
for (int _i15 = 0; _i15 < _list13.size; ++_i15) {
_elem14 = new MyOperation();
_elem14.read(iprot);
struct.operations.add(_elem14);
}
}
struct.setOperationsIsSet(true);
}
if (incoming.get(4)) {
struct.otherId1 = iprot.readI32();
struct.setOtherId1IsSet(true);
}
if (incoming.get(5)) {
struct.otherId2 = iprot.readI32();
struct.setOtherId2IsSet(true);
}
if (incoming.get(6)) {
struct.otherId3 = iprot.readI32();
struct.setOtherId3IsSet(true);
}
if (incoming.get(7)) {
struct.someObject = iprot.readString();
struct.setSomeObjectIsSet(true);
}
}