@Override
  public void fromData(DataInput in,
      DeserializationContext context) throws IOException, ClassNotFoundException {
    limit = in.readInt();
    hits = context.getDeserializer().readObject(in);
  }
Compares scores of two entries using natural ordering. I.e. it returns -1 if the first entry's
score is less than the second one.
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/distributed/TopEntries.java