You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (Updated) (JIRA)" <ji...@apache.org> on 2011/10/21 07:30:33 UTC
[jira] [Updated] (AVRO-940) C++ design for generic datum could be
better.
[ 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