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


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

        

Reply via email to