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

Switch to Plain View
Avro >> mail # user >> Could specific records implement the generic API as well?

Christophe Taton 2013-04-15, 18:23
Doug Cutting 2013-04-15, 20:08
Copy link to this message
Re: Could specific records implement the generic API as well?
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" <[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.
Christophe Taton 2013-04-15, 21:21
Doug Cutting 2013-04-15, 22:43
Christophe Taton 2013-04-18, 20:18
Doug Cutting 2013-04-22, 20:19
Scott Carey 2013-04-16, 04:19
Christophe Taton 2013-04-16, 04:39
Christophe Taton 2013-04-17, 05:30
Pankaj Shroff 2013-04-17, 14:16