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

Method get

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

Get the value for a node. Returns None if missing.

(&self, node_id: u32)

Source from the content-addressed store, hash-verified

147
148 /// Get the value for a node. Returns None if missing.
149 pub fn get(&self, node_id: u32) -> Option<f64> {
150 let idx = node_id as usize;
151 if idx < self.values.len() && (self.present[idx / 64] & (1u64 << (idx % 64))) != 0 {
152 Some(self.values[idx])
153 } else {
154 None
155 }
156 }
157
158 /// Get the value or a default.
159 pub fn get_or(&self, node_id: u32, default: f64) -> f64 {

Callers 15

find_next_match_keywordFunction · 0.45
resolve_bindingFunction · 0.45
binding_compatibleFunction · 0.45
left_join_rowsFunction · 0.45
apply_predicateFunction · 0.45
project_columnsFunction · 0.45
build_personalizationFunction · 0.45
runFunction · 0.45
label_idMethod · 0.45
node_idMethod · 0.45
node_id_rawMethod · 0.45

Calls 1

lenMethod · 0.45