Skip to main content

Module cursor

Module cursor 

Source
Expand description

Cursor navigation over chunks and chunk batches.

Implementing NavigableChunk lets a ChunkBatch expose a ChunkBatchCursor. This cursor joins key and value groups that span chunk boundaries, delegating navigation within each chunk to its cursor.

Searches across chunks read resident bounds metadata. Key seeks gallop from a remembered chunk, and boundary crossings compare adjacent chunks’ bounds. Chunk bodies are read when navigation reaches them. Implementors must keep bounds cheap even when a chunk’s body is paged out.

Structs§

ChunkBatchCursor
A cursor over a ChunkBatch, merging the per-chunk cursors.

Traits§

NavigableChunk
The navigation capability: a Chunk whose contents can be read by cursor.