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

Method __init__

python/tests/test_optimized_bplus_tree.py:231–234  ·  view source on GitHub ↗
(self, capacity: int = 128)

Source from the content-addressed store, hash-verified

229 """B+ Tree with single array node optimization."""
230
231 def __init__(self, capacity: int = 128):
232 self.capacity = capacity
233 self.root = OptimizedLeafNode(capacity)
234 self.leaves = self.root
235
236 def __getitem__(self, key) -> Any:
237 """Lookup with optimized nodes."""

Callers

nothing calls this directly

Calls 1

OptimizedLeafNodeClass · 0.85

Tested by

no test coverage detected