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

Method get_postings

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

Get the posting list for a dimension.

(&self, dim: u32)

Source from the content-addressed store, hash-verified

112
113 /// Get the posting list for a dimension.
114 pub fn get_postings(&self, dim: u32) -> Option<&[(u32, f32)]> {
115 self.postings.get(&dim).map(|v| v.as_slice())
116 }
117
118 /// Resolve an internal doc ID to the string document ID.
119 pub fn resolve_doc_id(&self, internal_id: u32) -> Option<&str> {

Callers 3

insert_and_lookupFunction · 0.45
multiple_docs_same_dimFunction · 0.45
dot_product_topkFunction · 0.45

Calls 2

getMethod · 0.45
as_sliceMethod · 0.45

Tested by 2

insert_and_lookupFunction · 0.36
multiple_docs_same_dimFunction · 0.36