I have several files containing key = value pairs. The keys are the same between files, but the values are different. Each file can have 1000 pluses of such pairs.
I want to store each file in a separate hash file, i.e. map<KeyString, ValueString> , so if there are five files, then there will be five hash maps.
To avoid duplicate keys in each hash map, is it possible for each map to refer to the same key? Please note that after adding keys to the card, it will not be deleted.
I decided to make the first file a “base”, as in the fly agaric, this base will be an internal set of keys / values. The other remaining files will be an external set of values, but I don’t know how to associate values with basic (internal) keys without duplicating keys?
I am open to a simpler / better approach.
java hashmap
Timegate
source share