Uploaded image for project: 'plastic'
  1. plastic
  2. PLAS-16

Need better support for arrays with missing members

    XMLWordPrintable

Details

    • Improvement
    • Status: Done
    • Medium
    • Resolution: Done
    • None

    Description

      The MoArray class is used by morpher writers to adapt the sequential array abstraction
      to the backing key-value store. There is an assumption that the array members are all
      present, so indexes 0-9 means that there are 10 keys in the backing map.

      There is a valid use case where array members can be missing. So seeing an index of
      9 does not mean there are 10 members - it means there are at most 10 members. So
      the concept of array size needs to be full (ie, return 10) even if there are missing
      members. The getAt() method needs to return null for missing members.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              allanclarke Allan Clarke
              allanclarke Allan Clarke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: