Btree implementation

I am writing a database model that uses the data structure of a B + tree. I know how to implement this structure in Java using only RAM. But I need to write data to disk (every time I write, modify or delete)

How can I implement this structure?

+3
source share
2 answers

I would recommend using a library. Writting BTree may look simple on paper, but with several million items and rebalancing, it's getting harder.

BTree/HTree, . Map Set. http://code.google.com/p/jdbm2/

github: https://github.com/jankotek/JDBM3

+5

Source: https://habr.com/ru/post/1781524/


All Articles