public Message getReply(Message originalMessage) throws IOException
{
DataOutputBuffer dob = new DataOutputBuffer();
dob.writeBoolean(rangeCompletedLocally);
dob.writeInt(rows.size());
for (Row row : rows)
{
Row.serializer().serialize(row, dob);
}
byte[] data = Arrays.copyOf(dob.getData(), dob.getLength());