Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-940

C++ design for generic datum could be better.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • c++
    • None

    Description

      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.

      Attachments

        1. AVRO-940.patch
          25 kB
          Thiruvalluvan M. G.

        Activity

          People

            thiru_mg Thiruvalluvan M. G.
            thiru_mg Thiruvalluvan M. G.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: