开发者

Implement a presistent B-Tree

开发者 https://www.devze.com 2023-02-21 01:17 出处:网络
I\'m interested to implement a presistent B-Tree using either c++ or java, as I need to store some path expressions e.g. //scientist/person/... /[Albert Einstein].

I'm interested to implement a presistent B-Tree using either c++ or java, as I need to store some path expressions e.g. //scientist/person/... /[Albert Einstein].

I tried goo开发者_如何学Gogle, but I was not satisfied. Some hints on this would be very helpful, or any ideas as where to start with. The BTree must be stored on the the disk however.


Avoid using pointers, instead use index from a base address. This way you can simply mmap the btree into memory and use the base address along with the index as a lookup.

If using windows look at mapview of file instead.


Did you look at qdbm?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号