Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro, mail # user - Could specific records implement the generic API as well?


Copy link to this message
-
Re: Could specific records implement the generic API as well?
Scott Carey 2013-04-15, 19:46
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
bits.

-Scott

On 4/15/13 11:23 AM, "Christophe Taton" <[EMAIL PROTECTED]> 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.