@Override
  public int size() {
    TopEntries entries = getEntries();
    return entries == null ? 0 : entries.size();
  }
An implementation of {@link IndexResultCollector} to collect {@link EntryScore}. It is expected
that the results will be ordered by score of the entry.
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/distributed/TopEntriesCollector.java