src/transfer/BackupCursorPolicy.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.2/src/transfer/BackupCursorPolicy.bend as BackupCursorPolicy
4 imports
import Base import ../coordinator/QueuePolicy.bend as QueuePolicy import ../coordinator/CursorCodec.bend as CursorCodec import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
Types
type AppendDecision source · line 7 · raw
Data
Reports whether one item is buffered, completes a block, or exceeds bounds.
CursorBuffer@seen:Nat -> @pending:Nat -> AppendDecision
CursorBlockReady@seen:Nat -> @pending:Nat -> AppendDecision
CursorRejectedAppendDecision
type FinishDecision source · line 13 · raw
Data
Reports footer readiness, a final partial block, or an invalid end count.
CursorFinalBlock@pending:Nat -> FinishDecision
CursorFinishRejectedFinishDecision
type OwnerFrameDecision source · line 19 · raw
Type
Carries an owner end marker or one unchanged raw-byte record.
OwnerCursorEndOwnerFrameDecision
OwnerCursorItem@key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> OwnerFrameDecision
Definitions
def block.index.next source · line 23 · raw
@index:Nat -> Nat
def owner.frame source · line 27 · raw
@frame:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/CursorCodec.Frame -> OwnerFrameDecision
Preserves raw bytes while classifying one owner cursor response.
def append.capacity source · line 33 · raw
@seen:Nat -> @pending:Nat -> AppendDecision
Selects buffering, a full block, or rejection after the count check.
def append.checked source · line 42 · raw
@seen:Nat -> @pending:Nat -> @within_expected_count:Bool -> AppendDecision
def append.copies source · line 51 · raw
@seen:Pair(Nat, Nat) -> @pending:Nat -> @expected:Nat -> AppendDecision
def append source · line 61 · raw
@seen:Nat -> @pending:Nat -> @expected:Nat -> AppendDecision
Adds one cursor item without exceeding the declared total or block capacity.
def finish.buffer source · line 64 · raw
@pending:Nat -> FinishDecision
def finish.pending source · line 69 · raw
@pending:Nat -> @count_matches:Bool -> FinishDecision
def finish source · line 75 · raw
@seen:Nat -> @expected:Nat -> @pending:Nat -> FinishDecision
Emits a partial final block only after the cursor returned its exact count.