@Override
  public Object terminate() {
    return downCast(result);
  }
Computes the sum for replicated & PR based queries.
geode-core/src/main/java/org/apache/geode/cache/query/internal/aggregate/Sum.java