ZENOTME commented on PR #135:
URL: https://github.com/apache/iceberg-rust/pull/135#issuecomment-1905325893
I found a new way to make this API can be used like the following:
```
let writer = FileWriterHelper::new(MockFileWriterBuilder)
// build the file writer first
.layer(MockFileWriterBuilder)
.layer(MockFileWriterBuilder)
.finish(MockIcebergWirterBuilder)
// after finish, build the iceberg writer
.layer(MockIcebergWirterBuilder)
.layer(MockIcebergWirterBuilder)
.build()
.await
.unwrap();
```
This may make this interface easier to make sense.🤔 Also feel free to leave
any suggestions or confusion, I'm glad to improve it to be easier to understand
and use.
--
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]