You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2009/12/05 00:15:20 UTC

[jira] Resolved: (AVRO-241) add union annotation to reflect API

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

Doug Cutting resolved AVRO-241.
-------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

I just committed this.

> add union annotation to reflect API
> -----------------------------------
>
>                 Key: AVRO-241
>                 URL: https://issues.apache.org/jira/browse/AVRO-241
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.3.0
>
>         Attachments: AVRO-241.patch, AVRO-241.patch, AVRO-241.patch, AVRO-241.patch
>
>
> In existing Hadoop RPC interfaces one can use an abstract base class or interface in a method declaration, and then pass different instantiable subclasses, since Hadoop RPC tags parameters and return types with their runtime java class name.  To permit such interfaces to be supported by Avro reflection we can add a Union annotation that can be added to the base class, declaring its instantiable subclasses for Avro.

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