• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing hashmaps directly from disk instead of memory  RSS feed

 
Daedalus Tien
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any such library available that lets you access and write to (perform get and put commands) on a hashmap that exists entirely as a file on disk instead of an object in memory. I’m asking because I will have a situation soon where I will have thousands of hashmaps each with millions of elements. Its way to big to fit into memory and object databases are too slow for my needs.

Basically when you do a get() command it hashes the key and should map to a position in the file where the value is stored and read the value into memory instead of mapping to an internal array index like an in memory hashmap. The idea is that you should be able to read and write to the flat hashmap without loading the entire hashmap into memory in order to execute the method. That way you get the speed of direct random read from a flat hashmap file without having to make space in memory or have the massive time slowdown of reading the entire hashmap into memory.

Thanks
 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's a database table with a primary key.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!