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

Method findKeyInNode

Part 7/node.go:262–277  ·  view source on GitHub ↗

findKeyInNode iterates all the items and finds the key. If the key is found, then the item is returned. If the key isn't found then return the index where it should have been (the first index that key is greater than it's previous)

(key []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

findKeyHelperFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected