private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { 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.error = new SnappyException(); struct.error.read(iprot); struct.setErrorIsSet(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 SnappyException(); struct.error.read(iprot); struct.setErrorIsSet(true); } } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.error = new SnappyException(); struct.error.read(iprot); struct.setErrorIsSet(true); } else {
@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 _list323 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList<HostAddress>(_list323.size); HostAddress _elem324; for (int _i325 = 0; _i325 < _list323.size; ++_i325) { _elem324 = new HostAddress(); _elem324.read(iprot); struct.success.add(_elem324); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.error = new SnappyException(); struct.error.read(iprot); struct.setErrorIsSet(true); } } }