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

Method get

python/bplustree/bplus_tree.py:763–768  ·  view source on GitHub ↗

Get value for a key, returns None if not found

(self, key: Any)

Source from the content-addressed store, hash-verified

761 return None
762
763 def get(self, key: Any) -> Optional[Any]:
764 """Get value for a key, returns None if not found"""
765 pos, exists = self.find_position(key)
766 if exists:
767 return self.values[pos]
768 return None
769
770 def delete(self, key: Any) -> Optional[Any]:
771 """Delete a key, returns the value if found"""

Callers 4

test_leaf_node_insertMethod · 0.95
setup.pyFile · 0.45
save_resultsFunction · 0.45
getMethod · 0.45

Calls 1

find_positionMethod · 0.95

Tested by 1

test_leaf_node_insertMethod · 0.76