AVRO-3520: [java] expose read schema in custom encoding
What is the purpose of the change
Allows custom encodings to support file changes.
Used https://github.com/apache/avro/pull/1692 as inspiration
Verifying this change
(Please pick one of the following options)
This change added tests and can be verified as follows: Test custom encodings with several different versions, confirming that the encoder is linked to the schema
Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? JavaDocs
@opwvhk If you could review would be awesome thanks
@opwvhk fixed prettier thanks
@opwvhk @martin-g anything I can do to help this one get reviewed? Thanks
@KalleOlaviNiemitalo @opwvhk could you please have a look? Much appreciated
@opwvhk, following up to see if you have any time to review this PR. Thanks
@martin-g thank you for the review. Have addressed or replied to the feedback. If you would like to see the multiple constructor approach happy to make that change.