Java On-Memory Efficient Key-Value Store

前端 未结 6 1732
不思量自难忘°
不思量自难忘° 2020-12-08 23:26

I have store 111 million key-value pairs (one key can have multiple values - maximum 2/3) whose key are 50 bit Integers and values are 32 bit (maximum) Integers. Now, my req

6条回答
  •  北海茫月
    2020-12-08 23:52

    If you must use Java, then implement your own hashtable/hashmap. An important property of your table is to use a linkedlist to handle collisions. Hence when you do a lookup, you may return all the elements on the list.

提交回复
热议问题