MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / dim_count

Method dim_count

nodedb/src/engine/vector/sparse/index.rs:129–131  ·  view source on GitHub ↗

Total number of distinct dimensions with at least one posting.

(&self)

Source from the content-addressed store, hash-verified

127
128 /// Total number of distinct dimensions with at least one posting.
129 pub fn dim_count(&self) -> usize {
130 self.postings.len()
131 }
132
133 /// Total number of posting entries across all dimensions.
134 pub fn total_postings(&self) -> usize {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected