Locate the indicated key and return a page/offset pair. Note that this is implicitly recursive; to search for a key, typically have to fetch a new page and invoke this same method on that page.
The search is a simple binary search. If this is an internal page, locate the key preceding (or equal to) the search key, then fetch the corresponding page and recurse. If this is a leaf page, look for an exact match.
|
|