@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    // how do we serialize the comparator?
    out.writeBoolean(modifiable);
    out.writeInt(size());
    context.getSerializer().writeObject(structType, out);
    for (Iterator i = fieldValuesIterator(); i.hasNext();) {
      Object[] fieldValues = (Object[]) i.next();
      DataSerializer.writeObjectArray(fieldValues, out);
    }
  }
Iterator wrapper to construct Structs on demand.
geode-core/src/main/java/org/apache/geode/cache/query/internal/SortedStructSet.java