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

Method set

nodedb/src/engine/graph/olap/columns.rs:140–146  ·  view source on GitHub ↗

Set the value for a node.

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

Source from the content-addressed store, hash-verified

138
139 /// Set the value for a node.
140 pub fn set(&mut self, node_id: u32, value: f64) {
141 let idx = node_id as usize;
142 if idx < self.values.len() {
143 self.values[idx] = value;
144 self.present[idx / 64] |= 1u64 << (idx % 64);
145 }
146 }
147
148 /// Get the value for a node. Returns None if missing.
149 pub fn get(&self, node_id: u32) -> Option<f64> {

Callers 15

getMethod · 0.45
set_collection_policyMethod · 0.45
extract_edge_propertiesFunction · 0.45
float64_column_basicFunction · 0.45
int64_column_basicFunction · 0.45
skips_trigger_sourceFunction · 0.45
none_mode_skipsFunction · 0.45

Calls 5

to_stringMethod · 0.80
lenMethod · 0.45
getMethod · 0.45
pushMethod · 0.45
insertMethod · 0.45

Tested by 9

float64_column_basicFunction · 0.36
int64_column_basicFunction · 0.36
skips_trigger_sourceFunction · 0.36
none_mode_skipsFunction · 0.36
writes_mode_triggersFunction · 0.36