This is killing me. Let’s say I have a DS with 10 data points, numbered in order. Then I remove dataPoint 6. Now I have points labeled 0, 1, 2, 3, 4, 5, 7, 8, 9. How do I make it so there is no gap with the current tools? I don’t think you can. All you need is .renamePoint, then:
OK, so here is a functioning solution in the current situation. I think it is too ugly and too difficult.
i=2; //this is the value we have deleted
t = vals["data"][i2.asString];
So are you trying to iterate through the dataset? Why would it matter if individual entries are gone.
What I did in C-C-Combine when I load multiple corpora and start getting near the 1million entries point, is start automatically deleting entries below a certain loudness (using some useful shit @a.harker added to entrymatcher) and just leave it like that with gaping holes in it. I still query what I need, and get back valid entries, it just skips over “the holes”.
I’m not asking for the DataSet to be ordered. I am asking to be able to rename a point, which is useful well beyond this example.
I totally get the usefulness and limitations of a hash table. If this were just a dictionary, that would be fine. But it is actually a dictionary living beyond a firewall, where getting something simple, like the keys, requires you to dump the entire data set and rustle through the data for the thing you want:
So, because it is behind a wall, I think some convenience classes for accessing/altering data are necessary.