~/bend-docscommunity

src/scan/Cursor.bend checks

raw source on the hub · import mylsm-lsm-store@0.6.0.2/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.

type Step source · line 12 · raw

Type

Returns one entry, terminal end, or terminal cursor error.

Definitions

def open source · line 18 · raw

@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/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.