MCPcopy Create free account
hub / github.com/amit-davidson/Building-a-NoSQL-database-from-zero / findKey

Method findKey

Part 3/node.go:168–174  ·  view source on GitHub ↗

findKey searches for a key inside the tree. Once the key is found, the parent node and the correct index are returned so the key itself can be accessed in the following way parent[index]. If the key isn't found, a falsey answer is returned.

(key []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.45

Calls 1

findKeyHelperFunction · 0.70

Tested by

no test coverage detected