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

Method get_child

python/tests/test_optimized_bplus_tree.py:36–38  ·  view source on GitHub ↗

Leaf nodes don't have children.

(self, key)

Source from the content-addressed store, hash-verified

34 return bisect.bisect_left(self.data, key, 0, self.num_keys)
35
36 def get_child(self, key) -> "OptimizedLeafNode":
37 """Leaf nodes don't have children."""
38 return self
39
40 def insert(self, key, value) -> Optional[Tuple[Any, "OptimizedLeafNode"]]:
41 """Insert with optimized array access."""

Callers 3

__getitem__Method · 0.45
_insert_recursiveMethod · 0.45
itemsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected