| Class | Innodb::Index |
| In: |
lib/innodb/index.rb
|
| Parent: | Object |
An InnoDB index B-tree, given an Innodb::Space and a root page number.
| record_describer | [RW] | |
| root | [R] | |
| space | [R] |
Search for a record within the entire index like linear_search, but use the page directory to search while making as few record comparisons as possible. If a matching record is not found, nil is returned.
Return an IndexCursor starting at the given record (an Innodb::Record, :min, or :max) and cursor in the direction given (:forward or :backward).
Iterate through all frag pages in a given fseg.
Iterate through all pages at this level starting with the provided page.
Search for a record within the entire index, walking down the non-leaf pages until a leaf page is found, and then verifying that the record returned on the leaf page is an exact match for the key. If a matching record is not found, nil is returned (either because linear_search_in_page returns nil breaking the loop, or because compare_key returns non-zero).
Walk an index tree depth-first, calling procs for each page and link in the tree.