@Override
  public Object terminate() {
    return distinct.size();
  }
Computes the count of the distinct rows for replicated region based queries.
geode-core/src/main/java/org/apache/geode/cache/query/internal/aggregate/CountDistinct.java