@Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeBoolean(valid);
   out.writeOptionalString(explanation);
   out.writeOptionalString(error);
 }
Esempio n. 2
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeInt(numDocs);
   out.writeInt(termsList.size());
   for (TermInfo ti : termsList) ti.writeTo(out);
 }