#[non_exhaustive]pub struct Stats {Show 14 fields
pub facts: usize,
pub entities: usize,
pub terms: usize,
pub edges: usize,
pub edge_versions: usize,
pub vectors: usize,
pub tombstones: usize,
pub hnsw_indexed: u32,
pub next_fact: u32,
pub next_entity: u32,
pub next_edge: u32,
pub db_uuid: u128,
pub pool_bytes: usize,
pub shards: ShardLayout,
}Expand description
Engine size counters. Every field is an O(1) read; the
struct is #[non_exhaustive] so later stages (database identity
markers, HNSW state) can extend it without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.facts: usizeFact records currently stored (live, closed, and tombstoned facts
awaiting maintain).
entities: usizeEntities.
terms: usizeInterned terms (tokens, tags, relations, normalized names).
edges: usizeDirected edges (each (src, rel, dst) counted once; the mirrored
in-arena is an internal detail).
edge_versions: usizeHistorical edge versions, including closed versions.
vectors: usizeQuantized vector slots.
tombstones: usizeTombstoned fact records awaiting physical purge.
hnsw_indexed: u32Vector slots already covered by the HNSW graph; slots after this are searched as the flat tail.
next_fact: u32The next fact id to be assigned. Ids below it are in use or burned (forgotten and purged) — never reissued.
next_entity: u32The next entity id to be assigned.
next_edge: u32The next edge-version id to be assigned.
db_uuid: u128The database lineage identity (Config::db_uuid); 0 for an
unnamed database.
pool_bytes: usizeTotal bytes held by the engine’s pools (arenas, blob heaps, chunk pools, the term dictionary and the vector pool).
shards: ShardLayoutHow the arenas are currently sharded.
The engine chooses this from what it holds and moves it during
maintain, so it is state to observe rather than a setting to pick —
see Config::shards_facts.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.