avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-154) Tool to induce schema using reflection
Date Fri, 16 Oct 2009 20:52:31 GMT

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

Doug Cutting commented on AVRO-154:
-----------------------------------

This is a great addition.

Should we add an option to pretty-print the schema?

Should we add an option/command to induce protocols from an interface too?


> Tool to induce schema using reflection
> --------------------------------------
>
>                 Key: AVRO-154
>                 URL: https://issues.apache.org/jira/browse/AVRO-154
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Philip Zeyliger
>            Assignee: Philip Zeyliger
>         Attachments: AVRO-154.patch.txt
>
>
> Patch that follows gives command-line access to ReflectData's getSchema() API, which
creates an AVRO schema based on reflection.
> Here's an example:
> {noformat}
>    $ src/scripts/avroj.sh induce build/test/classes org.apache.avro.BarRecord
>     {"type":"record","name":"BarRecord","namespace":"org.apache.avro","fields":[{"name":"beerMsg","type":"string"}]}
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message