[PLAS-17] Need better support for arrays with missing members Created: 03/Aug/20  Updated: 04/Aug/20  Resolved: 04/Aug/20

Status: Done
Project: plastic
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Medium
Reporter: Allan Clarke Assignee: Allan Clarke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones PLAS-16 Need better support for arrays with m... Done

 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.



 Comments   
Comment by Allan Clarke [ 03/Aug/20 ]

Replacement for abandoned branch PLAS-16

Generated at Wed Feb 07 20:36:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.