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

[clients/avro] Avro ReflectData example #62

Open
OneCricketeer opened this issue Oct 22, 2018 · 0 comments
Open

[clients/avro] Avro ReflectData example #62

OneCricketeer opened this issue Oct 22, 2018 · 0 comments

Comments

@OneCricketeer
Copy link

OneCricketeer commented Oct 22, 2018

Sometimes Java classes can be complex. For example, you want a Date/Instant object, but then Avro doesn't have a date type, so it should actually be encoded as a long. Rather than having Producer & Consumer application logic to handle that conversion, it can be done by Encoders in the Reflection API

Provide example for ReflectData, which are subclasses of SpecificRecords, and are easier to migrate existing Jackson/Gson POJOs into this model rather than write up an Avro schema

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

No branches or pull requests

1 participant