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

Method insert

nodedb-vector/src/collection/payload_index.rs:187–192  ·  view source on GitHub ↗

Record that `node_id` has `value` for this field.

(&mut self, node_id: u32, value: &Value)

Source from the content-addressed store, hash-verified

185
186 /// Record that `node_id` has `value` for this field.
187 pub fn insert(&mut self, node_id: u32, value: &Value) {
188 let Some(key) = PayloadKey::from_value(value) else {
189 return;
190 };
191 self.bitmaps.entry_or_default(key).insert(node_id);
192 }
193
194 /// Remove `node_id` from the bitmap for `value`.
195 pub fn delete(&mut self, node_id: u32, value: &Value) {

Callers 15

compactMethod · 0.45
insert_rowMethod · 0.45
from_snapshotMethod · 0.45
pre_filter_equalityFunction · 0.45
pre_filter_andFunction · 0.45
pre_filter_orFunction · 0.45
nan_equalityFunction · 0.45
null_value_indexedFunction · 0.45
snapshot_roundtripFunction · 0.45

Calls 1

entry_or_defaultMethod · 0.80

Tested by 15

pre_filter_equalityFunction · 0.36
pre_filter_andFunction · 0.36
pre_filter_orFunction · 0.36
nan_equalityFunction · 0.36
null_value_indexedFunction · 0.36
snapshot_roundtripFunction · 0.36
checkpoint_roundtripFunction · 0.36