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

GenericArray should implement Collection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • java
    • None
    • Incompatible change, Reviewed

    Description

      It would be nice if Avro arrays were better integrated with Java collections. The GenericArray interface permits array element reuse, which is awkward with java.util.Collection. But if GenericArray implemented Collection and the Avro runtime permitted arbitrary Collection implementations to be passed for Arrays then it would simplify many applications. The runtime could still reuse elements if an array implemented GenericArray, so performance would not suffer for applications that, e.g., loop over a data file, reusing instances.

      Attachments

        1. AVRO-637-fix.patch
          0.6 kB
          Doug Cutting
        2. AVRO-637.patch
          11 kB
          Doug Cutting
        3. AVRO-637.patch
          14 kB
          Doug Cutting
        4. AVRO-637.patch
          14 kB
          Doug Cutting

        Issue Links

          Activity

            People

              cutting Doug Cutting
              cutting Doug Cutting
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: