-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support application implementation of IonWriter #10
Comments
We need to investigate if this is useful. |
What is the guidance here? Is this interface stable enough to create custom implementations? |
Although the interface is fairly stable many places in We are open to fixing this to allow custom implementations if there are valuable use cases for doing so. |
Thanks. Can you give an example of where such an expectation is made? I'm evaluating writing an implementation that would stream to S3 transparently. I was expecting to use |
Since S3 is an output source I don't think an I may be wrong here but AFAIK S3 does not support streaming. All its APIs require a That being said one example of the expectation I mentioned: https://github.com/amzn/ion-java/blob/master/src/software/amazon/ion/impl/lite/IonValueLite.java#L886. Important to note that there are many, many others. |
After talking to the team I'm closing this issue as we don't intend to allow a "from scratch" custom implementation of the However we'd be open to provide a way for users to utilize the base capabilities of a writer, e.g. how to correctly write a binary Ion int, to build specialized writers with extra features for example triggering an action when some specific value is written. We are not sure how this capabilities would be exposed though as it would be better to design them with a user use case in mind. |
Is this javadoc comment still valid? https://github.com/amzn/ion-java/blob/master/src/com/amazon/ion/IonWriter.java#L38 |
Technically, no. I would say that This library still doesn't support customer supplied implementations of the interface, however. |
We need to stabilize the interface so applications can implement it.
Imported from ION-182,IONJAVA-160
The text was updated successfully, but these errors were encountered: