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

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

Schema, Field, Protocol and Message do actually have a common base class:

http://avro.apache.org/docs/current/api/java/org/apache/avro/JsonProperties.html

I'm not sure how much this can be exploited to simplify generic traversal.  It 
would be nice to have a generic traversal API.  I've started to write one 
several times but given up since it was far easier in each case to write 
another recursive walker with a switch statement.

I believe that Tom's API is sufficiently independent of the underlying Schema 
API that it can survive changes to that.  I'd hate to see the addition of this 
much-needed builder API held back for a re-design of the Schema API.
                
> 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, AVRO-1274.patch, AVRO-1274.patch, 
> AVRO-1274.patch, AVRO-1274.patch, TestDefaults.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