简体   繁体   English

用Java编写的B + Tree磁盘实现

[英]B+Tree on-disk implementation in Java

Does anyone know where to find a B+Tree on-disk implementation? 有谁知道在哪里可以找到B + Tree磁盘实现? I went through google forward and backward and unfortunately I couldn't find anything sensible. 我经历了谷歌向前和向后,不幸的是我找不到任何明智的东西。 Other threads have suggested to maybe take the tree from sqlite, sqljet or bdb but these trees are nested in the whole database and you can't really "just" filter out the B+Tree. 其他线程建议可以从sqlite,sqljet或bdb中获取树,但这些树嵌套在整个数据库中,你不能真正“只”过滤掉B + Tree。 I'm really looking for only a on-disk B+Tree... without any fancy things around. 我真的只是在寻找一个磁盘上的B + Tree ......没有任何奇特的东西。

有一个受GDBM启发的Java持久性引擎: MapDB

If you need it for real usage rather than for educational purposes (studying B+Tree data structure, etc.), LMDBJava is probably the best solution, available in Java now. 如果您需要它用于实际用途而不是用于教育目的(研究B + Tree数据结构等), LMDBJava可能是最好的解决方案,现在可用Java。 It's not B+Tree exactly, but also a sorted key-value store, so practically the same as B+Tree. 它不是B + Tree,而是一个有序的键值存储,实际上与B + Tree相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM