@Override public void writeTo(StreamOutput out) throws IOException { if (failure != null) { out.writeBoolean(true); failure.writeTo(out); } else { out.writeBoolean(false); response.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); if (responses.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); responses.get(i).writeTo(out); } if (failures.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); failures.get(i).writeTo(out); } } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); getResponse.writeTo(out); } }
@Override public void writeTo(StreamOutput out) throws IOException { if (failure != null) { out.writeBoolean(true); failure.writeTo(out); } else { out.writeBoolean(false); response.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { if (failure != null) { out.writeBoolean(true); failure.writeTo(out); } else { out.writeBoolean(false); response.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { if (failure != null) { out.writeBoolean(true); failure.writeTo(out); } else { out.writeBoolean(false); response.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { if (failure != null) { out.writeBoolean(true); failure.writeTo(out); } else { out.writeBoolean(false); response.writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); if (responses.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); responses.get(i).writeTo(out); } if (failures.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); failures.get(i).writeTo(out); } } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); if (responses.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); responses.get(i).writeTo(out); } if (failures.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); failures.get(i).writeTo(out); } } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); if (responses.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); responses.get(i).writeTo(out); } if (failures.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); failures.get(i).writeTo(out); } } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(locations.size()); for (int i = 0; i < locations.size(); i++) { out.writeVInt(locations.get(i)); if (responses.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); responses.get(i).writeTo(out); } if (failures.get(i) == null) { out.writeBoolean(false); } else { out.writeBoolean(true); failures.get(i).writeTo(out); } } } }