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

Method insert

nodedb-spatial/src/rtree/insert.rs:13–19  ·  view source on GitHub ↗

Insert an entry into the R-tree.

(&mut self, entry: RTreeEntry)

Source from the content-addressed store, hash-verified

11impl RTree {
12 /// Insert an entry into the R-tree.
13 pub fn insert(&mut self, entry: RTreeEntry) {
14 let bbox = entry.bbox;
15 let mut reinserted_levels = Vec::new();
16 insert_entry(self, entry, 0, &mut reinserted_levels);
17 self.len += 1;
18 self.nodes[self.root].bbox = self.nodes[self.root].bbox.union(&bbox);
19 }
20
21 /// Insert with reinsert tracking (used internally and by delete).
22 pub(crate) fn reinsert_entry(&mut self, entry: RTreeEntry) {

Callers 15

single_columnMethod · 0.45
geoarrow_field_metadataFunction · 0.45
make_treeFunction · 0.45
geohash_coverFunction · 0.45
index_documentMethod · 0.45
from_checkpointMethod · 0.45
checkpoint_preserves_idsFunction · 0.45
golden_header_layoutFunction · 0.45

Calls 2

insert_entryFunction · 0.85
unionMethod · 0.45