Avro
  1. Avro
  2. AVRO-1511

Add Support for Immutable Array and Map Fields

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.6
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None
    • Tags:
      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).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Doug Cutting
            Reporter:
            Sharmarke Aden
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development