@Override
  public Object[] toArray() {
    Struct[] structs = new Struct[contents.size()];
    int i = 0;
    for (final Object o : this) {
      structs[i++] = (Struct) o;
    }
    return structs;
  }
@param itr iterator over the Object[] instances of fieldValues
geode-core/src/main/java/org/apache/geode/cache/query/internal/StructSet.java