in-memory hashtable with values, which are db records pointers
Hi,
i mentioned to somebody, refering to a project using Java and java-db4, that i wanted to use a WeakHashMap and that in order to maximize the ability to store objects i would use java-db4 in conjuction with it. To be more exact, all objects will be stored in a db. The caller will first look in the WeakHashMap and then -if the entry doesn't exist there or has been discarded- will look for it in the db and insert it in the WeakHashMap.
However, he proposed something like "inserting pointers as values in HashMap, which i would implement" and using "multidimensional indexing".
Can anybody explain better or post some relevent links? Cannnot find anything relevant.
Thanks
|