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

Encoder/ Decoder for Apache Avro #563

Merged
merged 11 commits into from
May 24, 2023
Merged

Encoder/ Decoder for Apache Avro #563

merged 11 commits into from
May 24, 2023

Conversation

devsprint
Copy link
Contributor

@devsprint devsprint commented May 22, 2023

  • encoding /decoding support for primitives, option, either, case classes, collection, enums using binary serialization

val baos = new ByteArrayOutputStream()
val datumWriter = new GenericDatumWriter[Any](avroSchema)
val datum = encodeValue(value, schema)
val serializer = EncoderFactory.get().directBinaryEncoder(baos, null)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also support Avro file containers + compression?

@devsprint devsprint changed the title encoder for avro Encoder/ Decoder for Apache Avro May 23, 2023
@devsprint devsprint marked this pull request as ready for review May 24, 2023 06:41
@devsprint devsprint requested a review from a team as a code owner May 24, 2023 06:41
@devsprint devsprint requested a review from vigoo May 24, 2023 06:42
@jdegoes jdegoes merged commit 651ad37 into zio:main May 24, 2023
@devsprint
Copy link
Contributor Author

/claim #309

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

Successfully merging this pull request may close these issues.

3 participants