[ 
https://issues.apache.org/jira/browse/AVRO-1552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074444#comment-14074444
 ] 

Keegan Witt commented on AVRO-1552:
-----------------------------------

For our use case, we avoided the use of the builder because we didn't want to 
have hard-coded references to the setters and wanted to use the record's put() 
instead to programmatically map objects.  So another way our particular problem 
could be solved is if builders had a {{put(int field, Object value)}} method 
and a {{put(String fieldName, Object value)}} method that also updated 
{{fieldSetFlags}}.  If you don't object to that idea, I can open a Jira for it 
as well.

> Option to use primitive wrappers for fields
> -------------------------------------------
>
>                 Key: AVRO-1552
>                 URL: https://issues.apache.org/jira/browse/AVRO-1552
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Keegan Witt
>
> It'd be nice if there were an option for SpecificCompiler that would use 
> primitive wrappers (Integer, Long, etc) instead of their primitive types 
> (int, long, etc).  One use case is that the serialization would still fail if 
> these were not set and one didn't use the builder.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to