Stx-btree存储在磁盘上
stx-btree store on disc
我正在开发一个小型数据库,我已经决定使用stx-btree实现将数据存储在btree中。
有可能在磁盘上存储stx-btree吗?
提前感谢!
UPDATE: I need hold in memory piece of btree, load/save required tree node .
我对c或c++甚至btree都知之甚少,但在复习时看到了这个问题,并在谷歌上搜索了一下,因为它看起来很有趣!…
看看这个gitHub页面:
https://github.com/fakechris/stx-btree-ondisk--- Extensions ---
Beyond the usual STL interface the B+ tree classes support some extra goodies.
// Output the tree in a pseudo-hierarchical text dump to std::cout. This
// function requires that BTREE_DEBUG is defined prior to including the btree
// headers. Furthermore the key and data types must be std::ostream printable.
void print() const;
// Run extensive checks of the tree invariants. If a corruption in found the
// program will abort via assert(). See below on enabling auto-verification.
void verify() const;
// Serialize and restore the B+ tree nodes and data into/from a binary image.
// This requires that the key and data types are integral and contain no
// outside pointers or references.
void dump(std::ostream &os) const;
bool restore(std::istream &is);
相关文章:
- 将字符串存储在c++中的稳定内存中
- std::原子加载和存储都需要吗
- C++:将控制台输出存储在宏中更好吗
- 使用QProcess执行命令,并将结果存储在QStringList中
- 访问存储在向量C++中的结构的多态成员
- 如何从存储在std::映射中的std::集中删除元素
- 存储模板类型以强制转换回派生<T>
- 如何将 numpy 二维数组作为一种可以用C++读取的二进制格式存储在磁盘上
- 检查基于磁盘的合并与辅助存储的性能
- 如何在Linux中使用C/C++将文件直接存储在特定的连续磁盘块中
- C 的空间indexex库:从/到磁盘加载/存储主内存rtree
- 在磁盘上/从磁盘存储/加载C++对象
- 在磁盘C++上存储科学数据集的最佳方法
- 将未使用的类数据成员存储在磁盘上
- 存储/缓存实时数据的最佳方式,具有磁盘持久性
- libSpatialIndex:在磁盘上加载/存储索引
- 在c++中存储指向磁盘上文件行号的指针
- Stx-btree存储在磁盘上
- 编辑和编译源代码,而无需将副本存储在磁盘内存中
- 实现了在磁盘上存储值的容器的迭代操作符*