Skip to content
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

Serialization of multiple objects (SequenceWriter) #35

Closed
tomvandenberge opened this issue Jan 4, 2017 · 2 comments
Closed

Serialization of multiple objects (SequenceWriter) #35

tomvandenberge opened this issue Jan 4, 2017 · 2 comments
Labels
Milestone

Comments

@tomvandenberge
Copy link

A common use case with Avro is to serialize multiple objects to a single file, and to deserialize multiple objects from a single file. This is done using DataFileWriter and DataFileReader. The file contains a single schema for all objects.

Would it be possible to do this with jackson-dataformat-avro?

Regards,
Tom

@cowtowncoder cowtowncoder changed the title [avro] Serialization of multiple objects to/from file? Serialization of multiple objects to/from file? Jan 17, 2017
@cowtowncoder
Copy link
Member

I haven't tested this, but in theory it should be supportable -- many other formats support multiple root-level objects, so from API perspective should be fine.
So just need to verify, and possible enhance.

One related note however: currently module only supports "raw" content, that is, no schema as pre-amble. There's another issue filed for that. Two features obviously should co-exist if so, so that only one schema instance should be within filed.

@cowtowncoder cowtowncoder changed the title Serialization of multiple objects to/from file? Serialization of multiple objects (SequenceWriter) Jan 18, 2017
@cowtowncoder cowtowncoder added this to the 2.8.7 milestone Jan 18, 2017
@cowtowncoder
Copy link
Member

Implemented for 2.8.7 (and even backported 2.7.9 if that gets released)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants