MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / get

Method get

rust/src/node.rs:20–24  ·  view source on GitHub ↗
(&self, key: &K)

Source from the content-addressed store, hash-verified

18 /// Get a value by key from this leaf node.
19 #[inline]
20 pub fn get(&self, key: &K) -> Option<&V> {
21 self.binary_search_keys(key)
22 .ok()
23 .and_then(|index| self.get_value(index))
24 }
25
26 /// Get a mutable reference to a value by key from this leaf node.
27 #[inline]

Callers 15

bench_lookupFunction · 0.45
bench_mixed_operationsFunction · 0.45
benchmark_key_operationsFunction · 0.45
benchmark_accessFunction · 0.45
find_leaf_for_keyMethod · 0.45
find_childMethod · 0.45
find_child_mutMethod · 0.45

Calls 2

binary_search_keysMethod · 0.80
get_valueMethod · 0.80

Tested by 10

test_single_operationsFunction · 0.36
test_arena_lookupsFunction · 0.36
fuzz_test_bplustreeFunction · 0.36
fuzz_test_with_updatesFunction · 0.36
fuzz_test_timedFunction · 0.36
test_error_recoveryFunction · 0.36