avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Carey <scottca...@apache.org>
Subject Re: Could specific records implement the generic API as well?
Date Mon, 15 Apr 2013 19:46:42 GMT
Which aspect of the generic API are you most interested in?  The builder,
getters, or setters?

Most people that use Specific records do so for compile time type safety, so
adding 'set("foo", fooval)' is not desired for those users.   On the other
hand it is certainly possible to add it.

The code generated by the specific code generation utility uses templates,
one can add a template that extends what is produced to include generic API


On 4/15/13 11:23 AM, "Christophe Taton" <taton@wibidata.com> wrote:

> Hi, 
> Is there a reason for specific records to not implement the generic API?
> I didn't find any obvious technical reason, but maybe I missed something.
> Thanks,
> C.

View raw message