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

Allow Stringable Map keys in addition to pure String keys (avro reflection)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.2
    • java

    Description

      I'm using avro reflection for some serialization that doesn't require the best performance for some short-lived data.

      However, the object I'm trying to serialize uses a Map with non-String keys (the key class is Integer) and, because of the strict restriction on Map keys being Strings, it fails.

      Could we consider allowing Map keys to be Stringable classes (I'm thinking of something similar to Doug's solution in https://issues.apache.org/jira/browse/AVRO-1146)

      Attachments

        1. AVRO-1147.patch
          36 kB
          Alexandre Normand
        2. AVRO-1147.patch
          6 kB
          Doug Cutting
        3. AVRO-1147.patch
          31 kB
          Alexandre Normand

        Activity

          People

            alexandre.normand Alexandre Normand
            alexandre.normand Alexandre Normand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: