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

Doug Cutting commented on AVRO-1274:
------------------------------------

This looks great, Tom, and has long been needed.

 - The downside of calling this Schema.Builder is that it makes the Schema 
class even bigger.  The upside is that if you 'import Schema.Builder' then the 
code is sleeker.  But perhaps the preferred import should instead be 'import 
static SchemaBuilder.*'?  The static methods have unique-enough names that this 
might work well.  What do you think?
  - We can convert from Java object to JsonNode by parsing the output of 
GenericData.toString(Object).
                
> Add a schema builder API
> ------------------------
>
>                 Key: AVRO-1274
>                 URL: https://issues.apache.org/jira/browse/AVRO-1274
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Tom White
>            Assignee: Tom White
>         Attachments: AVRO-1274.patch
>
>
> It would be nice to have a fluent API that made it easier to construct record 
> schemas.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to