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

Method total_postings

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

Total number of posting entries across all dimensions.

(&self)

Source from the content-addressed store, hash-verified

132
133 /// Total number of posting entries across all dimensions.
134 pub fn total_postings(&self) -> usize {
135 self.postings.values().map(|v| v.len()).sum()
136 }
137
138 /// Whether the index is empty.
139 pub fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls 2

sumMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected