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

Add Support for Immutable Array and Map Fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.7.6
    • None
    • java
    • None
    • immutable

    Description

      Sometimes you want to pass your Avro bean around to various systems in your infrastructure and don't want anyone to alter the state of the bean.

      Currently one can prevent changes to various field by preventing the generation of setter methods but for array and map fields one can still get the array/map and perform mutating operations (i.e. add new element to the list).

      Attachments

        Activity

          People

            cutting Doug Cutting
            saden1 Sharmarke Aden
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: