private Object[] structLikeObjects(StructLike structLike) {
    if (structLike == null) {
      return null;
    }

    Object[] values = new Object[structLike.size()];
    for (int i = 0; i < values.length; i += 1) {
      Object value = structLike.get(i, Object.class);

      if (value instanceof StructLike) {
        values[i] = structLikeObjects((StructLike) value);
      } else {
        values[i] = value;
      }
    }

    return values;
  }
Size Estimator for StructLikeWrapper record payload.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/map/StructLikeWrapperSizeEstimator.java