Skip to main content

engramdb_core/
lib.rs

1//! EngramDB core:与 IO 后端无关的布局、索引与批量 gather 原语。
2//!
3//! 设计基线(`docs/design.md` §3):
4//! - Store-I 原始表视图:行 = rowid → 分片/偏移;与真实 PLE checkpoint 一致的分片组织
5//! - badge 聚集:`badge = BPows` 行一组,按 4KB/2MB 对齐,行宽 row_bytes 固定
6//! - 直接寻址:rowid → (shard, badge_id, in_badge_row) 全部为整数除法一次
7
8pub mod count_index;
9pub mod fnv;
10pub mod layout;
11#[cfg(unix)]
12pub mod store;
13
14pub use count_index::CountIndex;
15pub use fnv::fnv64;
16pub use layout::{Layout, RowExtent};