private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization // is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol( new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new HostAddress(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else {
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getPreferredServer_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new HostAddress(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.error = new GFXDException(); struct.error.read(iprot); struct.setErrorIsSet(true); } } }
_elem398.read(iprot); struct.success.add(_elem398);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllServersWithPreferredServer_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList<HostAddress>(_list401.size); for (int _i402 = 0; _i402 < _list401.size; ++_i402) { HostAddress _elem403; _elem403 = new HostAddress(); _elem403.read(iprot); struct.success.add(_elem403); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.error = new GFXDException(); struct.error.read(iprot); struct.setErrorIsSet(true); } } }
_elem380.read(iprot); struct.failedServers.add(_elem380);
_elem356.read(iprot); struct.failedServers.add(_elem356);
_elem371.read(iprot); struct.failedServers.add(_elem371);
_elem395.read(iprot); struct.failedServers.add(_elem395);
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.source = new HostAddress(); struct.source.read(iprot); struct.setSourceIsSet(true); } else {
struct.source.read(iprot); struct.setSourceIsSet(true);