Insert all indexed fields from `fields` for `node_id`.
(&mut self, node_id: u32, fields: &HashMap<String, Value>)
| 272 | |
| 273 | /// Insert all indexed fields from `fields` for `node_id`. |
| 274 | pub fn insert_row(&mut self, node_id: u32, fields: &HashMap<String, Value>) { |
| 275 | for (field, idx) in &mut self.indexes { |
| 276 | if let Some(value) = fields.get(field) { |
| 277 | idx.insert(node_id, value); |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /// Remove all indexed fields for `node_id`. |
| 283 | pub fn delete_row(&mut self, node_id: u32, fields: &HashMap<String, Value>) { |