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
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