[
https://issues.apache.org/jira/browse/AVRO-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaolu Ye updated AVRO-770:
---------------------------
Attachment: reader.avpr
Attached is a simple protocol file for testing. This is by no means exclusive.
Sorry that I couldn't provide the actual test we use because of the propriatery
info in it.
> Codegen enhancement per comments from Avro-726
> ----------------------------------------------
>
> Key: AVRO-770
> URL: https://issues.apache.org/jira/browse/AVRO-770
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.4.1
> Reporter: Xiaolu Ye
> Attachments: patch.zip, reader.avpr
>
>
> Codegen extension to support per discussion from Avro-726:
> 1) Introduced SpecificRecordEx interface that extends SpecificRecord and
> added setter/getter of primitive types in it.
> 2) All generated classes are derived from SpecificRecordEx with impl class
> has setter/getter of primitive types auto-generated based on the schema
> 3) Auto generate interface class for record type with user friendly
> setter/getter of proper types and maintain inheritance structure based on
> supertypes definition in the schema
> 4) Support callback dispatch by introducing Cbk interface in SpecificRecordEx
> with dispatch(Cbk) function. All derived interface has its own Cbk interface
> derived from SpecificRecordEx.Cbk, and its impl class implements
> dispatch(Cbk) to invoke the proper callback.
> 5) Auto generate Builder class for each impl class
> Patch will be supplied.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira