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

Method find_leaf_for_key

python/bplustree/bplus_tree.py:973–976  ·  view source on GitHub ↗

Find the leaf node that contains or would contain the given key

(self, key: Any)

Source from the content-addressed store, hash-verified

971 return self.split()
972
973 def find_leaf_for_key(self, key: Any) -> "LeafNode":
974 """Find the leaf node that contains or would contain the given key"""
975 child = self.get_child(key)
976 return child.find_leaf_for_key(key)

Callers

nothing calls this directly

Calls 2

get_childMethod · 0.95
find_leaf_for_keyMethod · 0.45

Tested by

no test coverage detected