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

Method _delete_from_leaf

python/bplustree/bplus_tree.py:444–447  ·  view source on GitHub ↗

Delete from a leaf node. Returns True if deleted, False if not found.

(self, leaf: "LeafNode", key: Any)

Source from the content-addressed store, hash-verified

442 pass
443
444 def _delete_from_leaf(self, leaf: "LeafNode", key: Any) -> bool:
445 """Delete from a leaf node. Returns True if deleted, False if not found."""
446 deleted = leaf.delete(key)
447 return deleted is not None
448
449 def keys(self, start_key=None, end_key=None) -> Iterator[Any]:
450 """Return an iterator over keys in the given range"""

Callers 1

_delete_recursiveMethod · 0.95

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected