Re: [Dhis2-devs] Reconstructing a categoryoptioncombo (long story)

2015-01-29 Thread Jim Grace
Hi Bob, Good question. I like the idea of an in-memory cache for speed, as you suggest. You might try using a HashTable where the key is an array of option value Strings and the value of the HashTable is the optionCombo. As you process the import, each time you get from the dataElement a

Re: [Dhis2-devs] Reconstructing a categoryoptioncombo (long story)

2015-01-29 Thread Bob Jolliffe
Yes I've been thinking a bit about HashTables and hashMaps. Effectively that's the closest thing you get to an associative array. And can simulate a tree. If we concede the ordering of keys then a simple HashMapString,Integer would even do the trick if we concatenate the categoryoption