@Override
  public Object[] toArray(Object[] obj) {
    if (hasLimitIterator) {
      return collectionToArray(this, obj);
    } else {
      return base.toArray(obj);
    }
  }
no-arg constructor required for DataSerializable
geode-core/src/main/java/org/apache/geode/cache/query/internal/ResultsCollectionWrapper.java