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

Method key_count

python/bplustree/bplus_tree.py:816–818  ·  view source on GitHub ↗

Count all keys in this leaf and all following leaves

(self)

Source from the content-addressed store, hash-verified

814 return self # Leaf nodes return themselves
815
816 def key_count(self) -> int:
817 """Count all keys in this leaf and all following leaves"""
818 return len(self) + (0 if self.next is None else self.next.key_count())
819
820
821class BranchNode(Node):

Callers 1

__len__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected