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

Method search

nodedb-spatial/src/rtree/tree.rs:61–65  ·  view source on GitHub ↗

Range search: return all entries whose bbox intersects the query bbox.

(&self, query: &BoundingBox)

Source from the content-addressed store, hash-verified

59
60 /// Range search: return all entries whose bbox intersects the query bbox.
61 pub fn search(&self, query: &BoundingBox) -> Vec<&RTreeEntry> {
62 let mut results = Vec::new();
63 super::search::search_node(&self.nodes, self.root, query, &mut results);
64 results
65 }
66
67 /// Range search returning owned entries.
68 pub fn search_owned(&self, query: &BoundingBox) -> Vec<RTreeEntry> {

Callers 12

spatial_prefilterFunction · 0.45
checkpoint_preserves_idsFunction · 0.45
spatial_joinFunction · 0.45
search_ownedMethod · 0.45
insert_many_and_searchFunction · 0.45
delete_entryFunction · 0.45
rect_overlap_searchFunction · 0.45
stress_insert_deleteFunction · 0.45
triggers_node_splitFunction · 0.45
bulk_load_500Function · 0.45

Calls 1

search_nodeFunction · 0.85

Tested by 9

checkpoint_preserves_idsFunction · 0.36
insert_many_and_searchFunction · 0.36
delete_entryFunction · 0.36
rect_overlap_searchFunction · 0.36
stress_insert_deleteFunction · 0.36
triggers_node_splitFunction · 0.36
bulk_load_500Function · 0.36