Skip to main content

Module mmap

Module mmap 

Source
Expand description

Cursor over the posting entries of an mmap’d index.

The mmap file stores, per entry, a record id, a weight and a max_next_weight ceiling. The cursor folds that ceiling into the inclusive form used here (tail_max = max(weight, max_next_weight)), which is correct whether the file’s ceiling includes the entry itself or only the entries after it.

Structs§

MmapCursor
Cursor over one dimension of an mmap’d index: a position within the dimension’s entries, read straight from the mapping.