You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Carey (JIRA)" <ji...@apache.org> on 2013/07/08 08:39:48 UTC

[jira] [Updated] (AVRO-1325) Enhanced Schema Builder API

     [ https://issues.apache.org/jira/browse/AVRO-1325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Carey updated AVRO-1325:
------------------------------

    Attachment: AVRO-1325-v3.patch

AVRO-1325-v3.patch  Adds shortcut methods to the FieldAssembler.

see the new test "testFieldShortcuts" in TestSchemaBuilder.

For example, optionalInt("fieldName") is a shortcut for name("fieldName").optional().intType()

There are shortcuts for 'required', 'optional' and 'nullable' primitive avro types.  Nested and named types do not have shortcuts.

Shortcuts do not support field aliases, doc, or custom properties.
                
> Enhanced Schema Builder API
> ---------------------------
>
>                 Key: AVRO-1325
>                 URL: https://issues.apache.org/jira/browse/AVRO-1325
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Scott Carey
>            Assignee: Scott Carey
>             Fix For: 1.7.5
>
>         Attachments: AVRO-1325.patch, AVRO-1325-preliminary.patch, AVRO-1325-properties.patch, AVRO-1325-v2.patch, AVRO-1325-v3.patch
>
>
> The schema builder from AVRO-1274 has a few key limitations.  I have proposed changes to make before it is released and the public API is locked in.

--
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