avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiruvalluvan M. G. (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-940) C++ design for generic datum could be better.
Date Fri, 21 Oct 2011 05:30:33 GMT

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

Thiruvalluvan M. G. updated AVRO-940:
-------------------------------------

    Attachment: AVRO-940.patch
    
> C++ design for generic datum could be better.
> ---------------------------------------------
>
>                 Key: AVRO-940
>                 URL: https://issues.apache.org/jira/browse/AVRO-940
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Thiruvalluvan M. G.
>            Assignee: Thiruvalluvan M. G.
>             Fix For: 1.6.0
>
>         Attachments: AVRO-940.patch
>
>
> The template functions {{avro::encode()}} and {{avro::decode}} along with {{codec_traits}}
has a clean way of encoding and decoding built-in C++ types corresponding to Avro types and
types generated by the code generator. However, encoding and decoding {{GenricDatum}} is clunky.
It uses {{std::pair}} and schema objects make makes it hard for programmers to grasp and use.
Added complexity is due to use of reference in {{pair}}.
> The forthcoming patch simplifies this and makes things uniform.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message