src/ByteDurableDb.bend relies on unsafe/foreign
raw source on the hub · import mylsm-lsm-store@0.6.0.2/src/ByteDurableDb.bend as ByteDurableDb
29 imports
import Base import ./ByteMemTable.bend as ByteMemTable import ./ByteManifest.bend as ByteManifest import ./ByteManifestIo.bend as ByteManifestIo import ./ByteSstFile.bend as ByteSstFile import ./ByteSstIo.bend as ByteSstIo import ./ByteWal.bend as ByteWal import ./ByteWalIo.bend as ByteWalIo import ./DbLock.bend as DbLock import ./DurableError.bend as DurableError import ./DurableBatchPolicy.bend as BatchPolicy import ./coordinator/QueuePolicy.bend as QueuePolicy import ./coordinator/SnapshotValueLengthPolicy.bend as SnapshotValueLengthPolicy import ./Fs.bend as Fs import ./FilesCompat.bend as Files import ./Keys.bend as Keys import ./scan/Cursor.bend as Cursor import ./scan/Snapshot.bend as SnapshotPolicy import ./scan/ByteBlockReader.bend as ByteBlockReader import ./scan/SstCursor.bend as SstCursor import ./scan/RangeCursor.bend as RangeCursor import ./scan/VisibleCursor.bend as VisibleCursor import ./scan/VisibleStats.bend as VisibleStats import ./CrashPoint.bend as CrashPoint import ./scan/ScanWorkPolicy.bend as ScanWorkPolicy import ./ByteRecoveryPolicy.bend as RecoveryPolicy import ./ValueLengthPolicy.bend as ValueLengthPolicy import ./Wal.bend as Wal import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
Types
type Error source · line 32 · raw
Data
Reports byte-database lifecycle, validation, storage, and uncertain-commit failures.
BusyError
TimeoutError
NotFoundError
AlreadyExistsError
InvalidArgumentError
UnsupportedPlatformError
ResourceLimitError
Corruption@message:String -> Error
Io@code:U32 -> @message:String -> Error
CommitUnknown@code:U32 -> @message:String -> Error
type HandleState source · line 45 · raw
Data
Prevents writes after a sync failure leaves commit status unknown.
OpenHandleState
PoisonedHandleState
type Handle source · line 50 · raw
Type
Owns one exclusive database lock and the recovered byte mutation table.
Handle@path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Handle
type SnapshotRoot source · line 55 · raw
Type
Retains one immutable SST generation and an owned copy of the active delta.
SnapshotRoot@sst_path:Maybe<&1, String> -> @sst_generation:Maybe<&1, U32> -> @retained_bytes:Nat -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> SnapshotRoot
type SnapshotCursorRoot source · line 60 · raw
Type
Carries a block cursor and its retained-byte budget from one immutable root.
SnapshotCursorRoot@retained_bytes:Nat -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> SnapshotCursorRoot
type SnapshotPointRead source · line 64 · raw
Type
Holds an incremental point-read transition over a retained snapshot cursor.
SnapshotPointNeed@cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> SnapshotPointRead
SnapshotPointStep@step:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Step -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> SnapshotPointRead
type Stats source · line 69 · raw
Data
Reports canonical byte entry count and payload size.
Stats@entries:Nat -> @payload_bytes:Nat -> Stats
type BatchPrepared source · line 73 · raw
Type
Carries normalized mutations and the visible base totals before WAL append.
Prepared@mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> BatchPrepared
type BatchStatsState source · line 77 · raw
Type
Tracks unique-key reconciliation against SST-backed visible statistics.
BatchNeed@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> BatchStatsState
BatchRead@pair:Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @key_bytes:Nat -> BatchStatsState
BatchProbe@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @key_bytes:Nat -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @result:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe) -> BatchStatsState
BatchKey@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> BatchStatsState
type BatchBuildState source · line 96 · raw
Type
Replays normalized mutations into a replacement byte table.
BatchBuild@mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> BatchBuildState
BatchBuildPut@keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @values:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @tail:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> BatchBuildState
BatchBuildDelete@keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @tail:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @reversed:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> BatchBuildState
type PointRead source · line 107 · raw
Type
Holds the next block read or key comparison in a bounded SST point lookup.
Need@cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> PointRead
Read@step:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Step -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> PointRead
Compare@value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @order:Cmp -> PointRead
Definitions
def lock.error source · line 114 · raw
@error:0x7586b743ff7fd05e412d5115859629b6/src/DurableError.Error -> Error
Converts database lock errors into the byte database error domain.
def io.error source · line 134 · raw
@error:Pair(U32, String) -> Error
Maps a raw filesystem failure into the byte database error domain.
def initialization.failed source · line 140 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @error:Pair(U32, String) -> IO(Result<&1, &1, Error, Handle>)
Converts lock acquisition into an owned database handle.
def initialized.synced source · line 153 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Result<&1, &1, Error, Handle>)
Syncs the new WAL directory before returning its initial handle.
def initialized source · line 166 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Result<&1, &1, Error, Handle>)
Creates the generation-four WAL after acquiring the directory lock.
def initialized.manifest source · line 179 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Result<&1, &1, Error, Handle>)
def create.locked source · line 193 · raw
@+path:String -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/DurableError.Error, 0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock> -> IO(Result<&1, &1, Error, Handle>)
Releases ownership when syncing the created database directory fails.
def create.canonical source · line 205 · raw
@result:Result<&1, &1, Pair(U32, String), String> -> IO(Result<&1, &1, Error, Handle>)
def create.reserved source · line 218 · raw
@+path:String -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Result<&1, &1, Error, Handle>)
Converts successful directory reservation into lock acquisition.
def create source · line 232 · raw
@+path:String -> IO(Result<&1, &1, Error, Handle>)
Creates a byte database directory, stable lock, and generation-four WAL.
def recovery.error source · line 237 · raw
@code:U32 -> @message:String -> Error
def recovered source · line 242 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table> -> IO(Result<&1, &1, Error, Handle>)
Maps WAL recovery errors into corruption or host failures.
def open.wal source · line 259 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> IO(Result<&1, &1, Error, Handle>)
Replays the byte WAL into an empty in-memory delta after SST validation.
def open.sst.validated source · line 269 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/scan/ByteBlockReader.Metadata> -> IO(Result<&1, &1, Error, Handle>)
def open.manifest.failed source · line 280 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @error:0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error -> IO(Result<&1, &1, Error, Handle>)
def open.manifest.result source · line 297 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Result<&1, &1, Error, Handle>)
def reclaim.file source · line 319 · raw
@+target:String -> @info:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/FilesCompat.Info> -> IO(Unit)
def reclaim.remove source · line 327 · raw
@+path:String -> @names:List<&2, String> -> IO(Unit)
def reclaim.names source · line 337 · raw
@names:List<&1, String> -> List<&2, String>
def reclaim.listed source · line 342 · raw
@+path:String -> @value:0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue -> @listed:Result<&1, &1, Pair(U32, String), List<&1, String>> -> IO(Unit)
def reclaim source · line 353 · raw
@+path:String -> @value:0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue -> IO(Unit)
Removes SST files the manifest no longer references, best effort, while holding the lock.
def open.reclaim.opened source · line 359 · raw
@+path:String -> @value:0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue -> @opened:Result<&1, &1, Error, Handle> -> IO(Result<&1, &1, Error, Handle>)
Reclaims retired SST files only after the database opened successfully.
def open.manifest.reclaimed source · line 371 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Result<&1, &1, Error, Handle>)
def open.locked source · line 384 · raw
@+path:String -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/DurableError.Error, 0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock> -> IO(Result<&1, &1, Error, Handle>)
Checks for a published byte SST while retaining database ownership.
def open.canonical source · line 398 · raw
@result:Result<&1, &1, Pair(U32, String), String> -> IO(Result<&1, &1, Error, Handle>)
Acquires exclusive ownership before replaying the byte WAL.
def open.existing source · line 410 · raw
@+path:String -> IO(Result<&1, &1, Error, Handle>)
def open.existing.present source · line 416 · raw
@+path:String -> @result:Result<&1, &1, Pair(U32, String), Bool> -> IO(Result<&1, &1, Error, Handle>)
Validates the WAL path before acquiring ownership.
def open.existing.wait.canonical source · line 428 · raw
@result:Result<&1, &1, Pair(U32, String), String> -> @+timeout_ms:U32 -> @+backoff_ms:U32 -> IO(Result<&1, &1, Error, Handle>)
def open.existing.wait.present source · line 442 · raw
@+path:String -> @+timeout_ms:U32 -> @+backoff_ms:U32 -> @result:Result<&1, &1, Pair(U32, String), Bool> -> IO(Result<&1, &1, Error, Handle>)
def open_existing_wait source · line 459 · raw
@+path:String -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Error, Handle>)
Opens an existing byte database after immediate or bounded lock acquisition.
def open_existing source · line 469 · raw
@+path:String -> IO(Result<&1, &1, Error, Handle>)
Opens an existing byte database and replays its binary WAL.
def append.decoded source · line 475 · raw
@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch>
Returns the handle and preserves the decoded batch result.
def append.unknown source · line 485 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @error:Pair(U32, String) -> Pair(Handle, Result<&1, &1, Error, Unit>)
Poisons a handle when append or sync leaves commit status uncertain.
def append.applied.decoded source · line 496 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> Pair(Handle, Result<&1, &1, Error, Unit>)
Appends the encoded frame and preserves a copy for post-sync replay.
def append.applied source · line 508 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch> -> Pair(Handle, Result<&1, &1, Error, Unit>)
def append.synced source · line 517 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @apply_frame:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Converts decoded frame validation into a committed handle state.
def append.frames source · line 535 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @frames:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Replaces the in-memory table only after the WAL frame is durable.
def append.encoded source · line 549 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/Wal.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Distinguishes pre-append encoding rejection from uncertain host writes.
def write.encoded source · line 563 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @batch:0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Validates open state before encoding or touching the WAL.
def write.count.validated source · line 577 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @ordered:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @validation:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.Validation -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write.count.measured source · line 599 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @measured:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.ByteBatchMeasurement -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write.counted source · line 614 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @batch:0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Batch -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.stats.entries source · line 634 · raw
@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @current:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats
Keeps the original state when SST or WAL checkpoint publication fails. Counts the visible entries and payload bytes in the newly published SST.
def flush.wal.reset source · line 648 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @result:Result<&1, &1, Pair(U32, String), Unit> -> Pair(Handle, Result<&1, &1, Error, Unit>)
Applies the flush transition after the WAL checkpoint is durable.
def flush.manifest source · line 662 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def path.reverse source · line 683 · raw
@path:String -> @reversed:String -> String
Keeps the original table when SST publication fails; after publication, checkpoints the WAL through atomic replacement and retains canonical entries. Reverses a string while preserving all path characters.
def path.clone source · line 690 · raw
@path:String -> String
Creates an independent string from its characters.
def duplicate_nat_pair_step source · line 694 · raw
@pair:Pair(Nat, Nat) -> Pair(Nat, Nat)
Copies one natural value into two equal affine outputs.
def duplicate_nat_pair source · line 699 · raw
@value:Nat -> Pair(Nat, Nat)
Reifies one natural number as two independently owned values.
def path.clone.pair.scalar source · line 705 · raw
@first:String -> @second:String -> @pair:Pair(Nat, Nat) -> Pair(String, String)
Prepends one scalar to each independently rebuilt path.
def path.clone.pair.go source · line 716 · raw
@path:String -> @copies:Pair(String, String) -> Pair(String, String)
Rebuilds two identical paths in one traversal.
def path.clone.pair source · line 732 · raw
@path:String -> Pair(String, String)
Produces two owned copies of a canonical filesystem path.
def handle_path_copy_pair source · line 736 · raw
@paths:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Pair(Handle, String)
Pairs a retained handle with an independently owned database path.
def handle.path.copy source · line 748 · raw
@handle:Handle -> Pair(Handle, String)
def path.clone.triple.second source · line 755 · raw
@first:String -> @pair:Pair(String, String) -> Pair(String, Pair(String, String))
Combines an initial path copy with two independently rebuilt copies.
def path.clone.triple.first source · line 763 · raw
@pair:Pair(String, String) -> Pair(String, Pair(String, String))
Splits the duplicated suffix into the remaining two path copies.
def path.clone.triple source · line 769 · raw
@path:String -> Pair(String, Pair(String, String))
Produces three independently owned copies of a canonical path.
def flush.written source · line 773 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @file_id:U32 -> @result:Result<&1, &1, Pair(U32, String), Unit> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.snapshot.publish.file_ids source · line 793 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @pair:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @file_ids:Pair(U32, U32) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.snapshot.publish source · line 812 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @pair:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @file_id:U32 -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.snapshot.identifier source · line 822 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.FileIdDecision -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.snapshot.manifest source · line 842 · raw
@path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.snapshot source · line 863 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @pair:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Retains the live table while an independently owned ordered copy is encoded.
def flush.table source · line 877 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Builds a canonical snapshot without consuming the live table.
def flush.cloned source · line 888 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @pair:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Clones the table entries so flush can retain the live in-memory state.
def flush.sst.loaded source · line 898 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Merges the persisted SST beneath the newest in-memory WAL delta.
def flush.manifest.loaded source · line 915 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def flush.open source · line 946 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Clones table entries before creating a canonical snapshot.
def flush source · line 957 · raw
@handle:Handle -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Publishes the current byte table as an authenticated SST snapshot.
def compact.entries source · line 965 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @copies:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def compact.sst.loaded source · line 976 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def compact.manifest.loaded source · line 993 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def compact.pathcopies source · line 1024 · raw
@copies:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def compact source · line 1037 · raw
@handle:Handle -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Publishes a canonical byte table with tombstones removed.
def get.sst.close.result source · line 1045 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @closed:Result<&1, &1, Pair(U32, String), Unit> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.closed source · line 1060 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.compare.decided source · line 1071 · raw
@value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @order:Cmp -> PointRead
def get.sst.compare.order source · line 1079 · raw
@value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @queries:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> PointRead
def get.sst.exhausted.cursor source · line 1090 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.exhausted source · line 1100 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:PointRead -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.loop source · line 1124 · raw
@fuel:Nat -> @+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:PointRead -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.opened source · line 1169 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @size:Nat -> @opened:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.sized source · line 1184 · raw
@paths:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @size:Result<&1, &1, Pair(U32, String), Nat> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.start source · line 1207 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.file.paths source · line 1222 · raw
@files:Pair(String, String) -> @retained_path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.file source · line 1238 · raw
@values:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.read source · line 1249 · raw
@paths:Pair(String, String) -> @file_id:U32 -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.probe source · line 1262 · raw
@paths:Pair(String, String) -> @file_id:U32 -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.probe.start source · line 1284 · raw
@paths:Pair(String, String) -> @file_id:U32 -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.generation.path source · line 1298 · raw
@paths:Pair(String, String) -> @file_id:U32 -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def path.append.sst.triple source · line 1308 · raw
@paths:Pair(String, Pair(String, String)) -> Pair(String, Pair(String, String))
def get.sst source · line 1313 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.delta source · line 1322 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.probe source · line 1332 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.sst.probe.start source · line 1348 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.manifest source · line 1359 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.pathcopies source · line 1382 · raw
@copies:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
def get.retained source · line 1396 · raw
@base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @pair:Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
Reads one raw byte key while retaining the database handle.
def get.length.sst.result source · line 1404 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.ValueMetadata> -> Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>)
def get.length.sst source · line 1424 · raw
@paths:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
def get.length.manifest.fallback source · line 1437 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
def get.length.manifest source · line 1467 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
def get.length.probed source · line 1476 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe) -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
def get.length.delta source · line 1497 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
def value_length.preserve.handle source · line 1508 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @result:Result<&1, &1, Error, Maybe<&1, U32>> -> Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>)
def value_length.preserve source · line 1518 · raw
@base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @pair:Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>) -> Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>)
def value_length source · line 1537 · raw
@handle:Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, U32>>))
Handles value length.
def get source · line 1554 · raw
@handle:Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))
Reads one raw byte key while retaining the database handle.
def stats.remove.base.length source · line 1569 · raw
@base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @key_bytes:Nat -> @old_value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats
def batch.keys.retained source · line 1580 · raw
@probe_key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def batch.keys.first source · line 1587 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def batch.keys source · line 1592 · raw
@key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def batch.restore.handle source · line 1595 · raw
@original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @handle:Handle -> Handle
def batch.build source · line 1603 · raw
@fuel:Nat -> @state:BatchBuildState -> Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation>)
def batch.stats.exhausted source · line 1639 · raw
@state:BatchStatsState -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.stats.loop source · line 1656 · raw
@fuel:Nat -> @state:BatchStatsState -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.prepare.cloned source · line 1714 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats) -> @counted:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, Nat) -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
Counts records before preparing a state that owns both the original and adjusted aggregates.
def batch.prepare source · line 1731 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.validation.decided source · line 1743 · raw
@handle:Handle -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @validation:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.Validation -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.validation.result source · line 1762 · raw
@handle:Handle -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @measured:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.ByteBatchMeasurement -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.validate source · line 1775 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.build.result source · line 1783 · raw
@handle:Handle -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation>) -> IO(Pair(Handle, Result<&1, &1, Error, BatchPrepared>))
def batch.commit.handle source · line 1792 · raw
@stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @handle:Handle -> @result:Result<&1, &1, Error, Unit> -> Pair(Handle, Result<&1, &1, Error, Unit>)
def batch.commit.choose source · line 1801 · raw
@original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @adjusted_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @handle:Handle -> @result:Result<&1, &1, Error, Unit> -> Pair(Handle, Result<&1, &1, Error, Unit>)
def batch.commit.result source · line 1813 · raw
@original_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @adjusted_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @pair:Pair(Handle, Result<&1, &1, Error, Unit>) -> Pair(Handle, Result<&1, &1, Error, Unit>)
def batch.prepare.validated source · line 1822 · raw
@prepared:Pair(Handle, Result<&1, &1, Error, BatchPrepared>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def batch.prepare.result source · line 1834 · raw
@prepared:Pair(Handle, Result<&1, &1, Error, BatchPrepared>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def batch.prepare.built source · line 1839 · raw
@handle:Handle -> @built:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation>) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def batch.prepare.start source · line 1850 · raw
@handle:Handle -> @fuel:Nat -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write_batch.validated source · line 1858 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @count:Nat -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write_batch.validation.result source · line 1865 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @count:Nat -> @validation:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.Validation -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write_batch.validation.counted source · line 1883 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> @counts:Pair(Nat, Nat) -> @encoded_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write_batch.measured source · line 1894 · raw
@handle:Handle -> @measured:0x7586b743ff7fd05e412d5115859629b6/src/DurableBatchPolicy.ByteBatchMeasurement -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def write_batch source · line 1907 · raw
@handle:Handle -> @mutations:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation> -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Reconciles each unique batch key against the SST before one atomic WAL append.
def put.keys.retained source · line 1913 · raw
@probe_key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def put.keys.first source · line 1920 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def put.keys source · line 1927 · raw
@key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def put.absent source · line 1930 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @write_key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe.absent.nonempty source · line 1942 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe.present source · line 1956 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe.absent.count source · line 1970 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @empty:Bool -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe.absent.cloned source · line 1987 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats) -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe.absent source · line 2003 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probe source · line 2015 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @probe:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.probed source · line 2031 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @result:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe) -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put.keyed source · line 2044 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def put source · line 2060 · raw
@handle:Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Writes a raw byte key and value after subtracting the SST value it shadows.
def delete.absent source · line 2065 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @delete_key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe.absent.nonempty source · line 2076 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe.present source · line 2088 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe.absent.count source · line 2101 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @empty:Bool -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe.absent.cloned source · line 2116 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats) -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe.absent source · line 2131 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probe source · line 2142 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @probe:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.probed source · line 2157 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @result:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Probe) -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
def delete.keyed source · line 2170 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Deletes a raw byte key after removing the SST value it shadows.
def delete source · line 2185 · raw
@handle:Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Handle, Result<&1, &1, Error, Unit>))
Deletes a raw byte key after removing the SST value it shadows.
def scan.sst.bounds source · line 2190 · raw
@bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> 0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Bounds
def scan.sources.opened source · line 2195 · raw
@handle:Handle -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @opened:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor> -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.manifest.result source · line 2209 · raw
@+path:String -> @handle:Handle -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @sst_bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Bounds -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.path.kept.triple source · line 2242 · raw
@copies:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Pair(String, Pair(String, Handle))
def scan.path.kept source · line 2253 · raw
@handle:Handle -> Pair(String, Pair(String, Handle))
def scan.exists.start source · line 2259 · raw
@paths:Pair(String, Pair(String, Handle)) -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @sst_bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Bounds -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.bounds.cloned source · line 2272 · raw
@handle:Handle -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.delta.copied source · line 2282 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.open source · line 2297 · raw
@handle:Handle -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> IO(Pair(Handle, Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>))
def scan.work_budget.copied source · line 2303 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_entries:Pair(Nat, Nat) -> @payload_bytes:Nat -> @copies:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Handle, Nat)
def scan.work_budget source · line 2320 · raw
@handle:Handle -> Pair(Handle, Nat)
def scan.error source · line 2328 · raw
@error:Pair(U32, String) -> Error
def snapshot.entry.value source · line 2333 · raw
@key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @pair:Pair(Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry
Clones canonical visible entries so a cursor can advance independently of writes.
def snapshot.entry.key source · line 2341 · raw
@pair:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry
def snapshot.entries source · line 2349 · raw
@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>
def snapshot.table source · line 2357 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @cloned:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Handle, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)
Returns a stable ordered copy while preserving the live database handle.
def snapshot source · line 2370 · raw
@handle:Handle -> Pair(Handle, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>)
Clones the ordered visible table while preserving the owned handle.
def snapshot.limited.saved source · line 2376 · raw
@pair:Pair(Handle, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>)
def snapshot.estimate source · line 2382 · raw
@base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @delta_bytes:Nat -> Nat
def snapshot.limited.saved.result source · line 2387 · raw
@handle:Handle -> @result:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table> -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
def snapshot.manifest.result.paths source · line 2404 · raw
@paths:Pair(String, String) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
def snapshot.limited.admitted.paths source · line 2441 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/scan/Snapshot.Decision -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
def snapshot.limited.admitted source · line 2462 · raw
@handle:Handle -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/scan/Snapshot.Decision -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
def snapshot.limited.retained.stats source · line 2472 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @stats:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats) -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
Preflights retained bytes before reading the published SST snapshot.
def snapshot.limited.retained source · line 2488 · raw
@handle:Handle -> @retained:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, Nat) -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
def snapshot_limited source · line 2501 · raw
@max_bytes:Nat -> @handle:Handle -> IO(Pair(Handle, Result<&1, &1, Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>))
Preflights retained bytes before reading the published SST snapshot.
def snapshot.root.reservation.result source · line 2511 · raw
@handle:Handle -> @path:Maybe<&1, String> -> @generation:Maybe<&1, U32> -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/scan/Snapshot.Decision -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.reservation source · line 2526 · raw
@handle:Handle -> @path:Maybe<&1, String> -> @generation:Maybe<&1, U32> -> @sst_bytes:Nat -> @delta_bytes:Nat -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.file.size.result source · line 2539 · raw
@handle:Handle -> @path:String -> @generation:Maybe<&1, U32> -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> @result:Result<&1, &1, Pair(U32, String), Nat> -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.file.size source · line 2556 · raw
@handle:Handle -> @paths:Pair(String, String) -> @generation:Maybe<&1, U32> -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.generation.file source · line 2571 · raw
@handle:Handle -> @read_path:String -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> @file_ids:Pair(U32, U32) -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.manifest.result source · line 2585 · raw
@read_path:String -> @handle:Handle -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifestIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteManifest.ManifestValue> -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.manifest source · line 2614 · raw
@paths:Pair(String, String) -> @handle:Handle -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.snapshot.paths source · line 2630 · raw
@paths:Pair(String, Pair(String, String)) -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @table:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.snapshot.delta source · line 2646 · raw
@handle:Handle -> @copied:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.preflight.estimated source · line 2659 · raw
@handle:Handle -> @copied:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.preflight.ready source · line 2667 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.preflight source · line 2682 · raw
@handle:Handle -> @delta_bytes:Nat -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot.root.retained source · line 2695 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @retained:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, Nat) -> @max_bytes:Nat -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
def snapshot_root_limited source · line 2709 · raw
@max_bytes:Nat -> @handle:Handle -> IO(Pair(Handle, Result<&1, &1, Error, SnapshotRoot>))
Captures the active delta and immutable SST path within the retained-byte limit.
def snapshot.root.path.clone.copies source · line 2718 · raw
@copies:Pair(String, String) -> Pair(Maybe<&1, String>, Maybe<&1, String>)
def snapshot.root.path.clone source · line 2724 · raw
@path:Maybe<&1, String> -> Pair(Maybe<&1, String>, Maybe<&1, String>)
def snapshot.root.generation.clone.copies source · line 2731 · raw
@values:Pair(Nat, Nat) -> Pair(Maybe<&1, U32>, Maybe<&1, U32>)
def snapshot.root.generation.clone source · line 2738 · raw
@generation:Maybe<&1, U32> -> Pair(Maybe<&1, U32>, Maybe<&1, U32>)
def snapshot.root.clone.fields source · line 2747 · raw
@paths:Pair(Maybe<&1, String>, Maybe<&1, String>) -> @generations:Pair(Maybe<&1, U32>, Maybe<&1, U32>) -> @retained_bytes:Pair(Nat, Nat) -> @deltas:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(SnapshotRoot, SnapshotRoot)
def snapshot.root.clone source · line 2766 · raw
@root:SnapshotRoot -> Pair(SnapshotRoot, SnapshotRoot)
def snapshot.root.sst.bounds source · line 2774 · raw
@bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> 0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Bounds
def snapshot.root.cursor.opened source · line 2779 · raw
@retained_bytes:Nat -> @delta:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @opened:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/scan/SstCursor.Cursor> -> IO(Result<&1, &1, Error, SnapshotCursorRoot>)
def snapshot.root.cursor.open.copied source · line 2794 · raw
@bounds:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> @root:SnapshotRoot -> IO(Result<&1, &1, Error, SnapshotCursorRoot>)
def snapshot.root.cursor.open.state source · line 2815 · raw
@root:SnapshotRoot -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> IO(Result<&1, &1, Error, SnapshotCursorRoot>)
def snapshot.root.cursor.open.result source · line 2821 · raw
@result:Result<&1, &1, Error, SnapshotCursorRoot> -> Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>
def snapshot.root.cursor.open source · line 2828 · raw
@root:SnapshotRoot -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> IO(Result<&1, &1, Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>)
def snapshot.root.get.closed source · line 2837 · raw
@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @closed:Result<&1, &1, Pair(U32, String), Unit> -> Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>
def snapshot.root.get.close source · line 2845 · raw
@cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> @value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.item.checked source · line 2853 · raw
@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @matches:Bool -> Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>
def snapshot.root.get.item.compared source · line 2864 · raw
@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>
def snapshot.root.get.item.copies source · line 2873 · raw
@value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @copies:Pair(Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes), Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>
def snapshot.root.get.item.value source · line 2881 · raw
@key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>
def snapshot.root.get.item source · line 2889 · raw
@entry:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry -> @cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> @query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.step source · line 2899 · raw
@query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @step:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Step -> SnapshotPointRead
def snapshot.root.get.exhausted.closed source · line 2905 · raw
@closed:Result<&1, &1, Pair(U32, String), Unit> -> Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>
def snapshot.root.get.exhausted source · line 2912 · raw
@cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.exhausted.step source · line 2919 · raw
@query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @step:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Step -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.loop source · line 2934 · raw
@fuel:Nat -> @state:SnapshotPointRead -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.opened source · line 2966 · raw
@query:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @opened:Result<&1, &1, Error, SnapshotCursorRoot> -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get.copied source · line 2977 · raw
@root:SnapshotRoot -> @copies:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.get source · line 2989 · raw
@root:SnapshotRoot -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Result<&1, &1, Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)
def snapshot.root.value.length.decision source · line 2995 · raw
@decision:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/SnapshotValueLengthPolicy.Decision -> Result<&1, &1, Error, Maybe<&1, U32>>
def snapshot.root.value.length.metadata source · line 3004 · raw
@probe:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe -> @measured:Result<&1, &1, Pair(U32, String), 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.ValueMetadata> -> Result<&1, &1, Error, Maybe<&1, U32>>
def snapshot.root.value.length.metadata.read source · line 3015 · raw
@sst_path:Maybe<&1, String> -> @probe:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Result<&1, &1, Error, Maybe<&1, U32>>)
def snapshot.root.value.length.delta.output source · line 3031 · raw
@sst_path:Maybe<&1, String> -> @sst_generation:Maybe<&1, U32> -> @retained_bytes:Nat -> @lookup_key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @looked_up:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe) -> Pair(SnapshotRoot, Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def snapshot.root.value.length.delta.counted source · line 3043 · raw
@sst_path:Maybe<&1, String> -> @sst_generation:Maybe<&1, U32> -> @retained_bytes:Nat -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> @counted:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, Nat) -> Pair(SnapshotRoot, Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def snapshot.root.value.length.delta source · line 3056 · raw
@root:SnapshotRoot -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes) -> Pair(SnapshotRoot, Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes))
def snapshot.root.value.length.dispatch source · line 3065 · raw
@root:SnapshotRoot -> @+probe:0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/SnapshotValueLengthPolicy.Decision -> IO(Result<&1, &1, Error, Maybe<&1, U32>>)
def snapshot.root.value.length.probed source · line 3082 · raw
@measured:Pair(SnapshotRoot, Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.LengthProbe, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> IO(Result<&1, &1, Error, Maybe<&1, U32>>)
def snapshot.root.value_length source · line 3090 · raw
@root:SnapshotRoot -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Result<&1, &1, Error, Maybe<&1, U32>>)
def close.released source · line 3098 · raw
@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/DurableError.Error, Unit> -> Result<&1, &1, Error, Unit>
Restores a read handle after byte lookup.
def close source · line 3108 · raw
@handle:Handle -> IO(Result<&1, &1, Error, Unit>)
Releases database ownership and consumes the handle.
def stats.aggregate.copies source · line 3116 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @original:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats) -> @delta_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Pair(Handle, Stats)
def stats.aggregate source · line 3136 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @original:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @delta_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Pair(Handle, Stats)
def stats.measured.result source · line 3147 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @original:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @measured:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> Pair(Handle, Stats)
def stats.visible source · line 3160 · raw
@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @current:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats
def stats.measured source · line 3173 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @original:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @visible:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> Pair(Handle, Stats)
def stats.canonical source · line 3184 · raw
@+path:String -> @lock:0x7586b743ff7fd05e412d5115859629b6/src/DbLock.Lock -> @state:HandleState -> @base_stats:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleStats.Stats -> @pair:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Handle, Stats)
def stats source · line 3198 · raw
@handle:Handle -> Pair(Handle, Stats)
Counts visible entries and exact key/value payload bytes.