src/scan/Cursor.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.0/src/scan/Cursor.bend as Cursor
2 imports
import Base import ../ByteMemTable.bend as ByteMemTable
Types
type Cursor source · line 5 · raw
Type
Owns the unread suffix of one ordered byte-entry source.
CursorReady@entries:List<&1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/ByteMemTable.Entry> -> Cursor
CursorEndedCursor
CursorClosedCursor
CursorFailed@code:U32 -> @message:String -> Cursor
type Step source · line 12 · raw
Type
Returns one entry, terminal end, or terminal cursor error.
CursorItem@entry:0x8f9a5c58059f5db5361cb2eddb73ec7f/src/ByteMemTable.Entry -> @cursor:Cursor -> Step
CursorEnd@cursor:Cursor -> Step
CursorError@cursor:Cursor -> Step
Definitions
def open source · line 18 · raw
@entries:List<&1, 0x8f9a5c58059f5db5361cb2eddb73ec7f/src/ByteMemTable.Entry> -> Cursor
Creates a cursor over an already ordered bounded source.
def next source · line 22 · raw
@cursor:Cursor -> Step
Returns at most one entry and retains the remaining source suffix.
def close source · line 34 · raw
@cursor:Cursor -> Cursor
Closes an active cursor while preserving terminal outcomes.