Expand description
kira_kv_engine — PtrHash-style MPH + PGM index.
- Build once on a set of unique keys (bytes/str).
- O(1) lookups: key → position in
[0..Index::slot_capacity()). Note this is not[0..len())— PtrHash25 over-provisions slot space by1/gamma. Size parallel side arrays toslot_capacity(). - Empty input is supported (0.6.1+): produces a no-op instance.
Re-exports§
pub use index::BloomExport;pub use index::GpuExport;pub use index::Index;pub use index::IndexBuilder;pub use index::IndexConfig;pub use index::IndexError;pub use index::IndexStats;
Modules§
Structs§
- Backend
Build Config - Dynamic
Config - Configuration for
DynamicIndex. - Dynamic
HotTier - Dynamic hot-tier holding a
HotTierIndexplus a frequency tracker. The inner index is replaced atomically by [install] after a rebuild. - Dynamic
Index - Dynamic key→id index. Supports
insert,delete,lookupwith stable ids while delegating heavy lookups to compacted staticIndextiers. - Elias
Fano - Compact representation of a sorted u64 sequence.
- Hybrid
Builder - Builder for
HybridIndex. - Hybrid
Index - Hybrid PGM + MPH index for any key type (operates over
canonical_hash(key)). - Hybrid
Storage Stats - PgmBuilder
- Builder for PGM Index with configuration.
- PgmIndex
- PGM Index for sorted integer keys with O(1) average lookup.
- PgmIndex
U128 - PGM Index for sorted unique 16-byte keys.
- PgmStats
- Statistics about PGM index.
- Space
Saving - Space-Saving frequency counter for u64 keys. Tracks up to
capacitymost frequent keys with bounded error: estimated count never undershoots true count, and overshoots by at mosttotal_observations / capacity.
Enums§
Traits§
Type Aliases§
- Stable
Id - A stable external id assigned by
DynamicIndexon insert. Never invalidated by flushes or compactions.