@Override
  public void accumulate(Object value) {
    if (value != null && value != QueryService.UNDEFINED) {
      super.accumulate(value);
      ++num;
    }
  }
Computes the non distinct average for replicated region based queries
geode-core/src/main/java/org/apache/geode/cache/query/internal/aggregate/Avg.java