public static StructProjection create(Schema schema, Set<Integer> ids) {
    StructType structType = schema.asStruct();
    return new StructProjection(structType, TypeUtil.project(structType, ids));
  }
Creates a projecting wrapper for {@link StructLike} rows.

<p>This projection does not work with repeated types like lists and maps.

@param schema schema of rows wrapped by this projection
@param ids field ids from the row schema to project
@return a wrapper to project rows
iceberg/patched-iceberg-api/src/main/java/org/apache/iceberg/util/StructProjection.java