singhpk234 commented on PR #14502:
URL: https://github.com/apache/iceberg/pull/14502#issuecomment-3488954852
I was talking to @stevenzwu, he suggested a nice alternative here inspired
by StructProjection adding it here for broder forum
```
class TableMetadataProjection {
TableMetadata create(TableMetadata metadata, Function<Snapshot, Snapshot>
transformer) {
new SnapshotTransformer(metadata.())
}
private static class SnapshotTransformer extends TableMetadata {
@Override
public List<Snapshot> snapshots() {
List<Snapshot> s = super.snapshot()
// apply the tranform on s ?
}
}
```
In this approach we will need to make all the members getters, they can be
package private for sure !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]