~/bend-docscommunity

src/transfer/BackupCursorPolicy.bend checks

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

type FinishDecision source · line 13 · raw

Data

Reports footer readiness, a final partial block, or an invalid end count.

type OwnerFrameDecision source · line 19 · raw

Type

Carries an owner end marker or one unchanged raw-byte record.

Definitions

def block.index.next source · line 23 · raw

@index:Nat -> Nat

def owner.frame source · line 27 · raw

@frame:0x8f9a5c58059f5db5361cb2eddb73ec7f/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.