src/SstReadPolicy.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.2/src/SstReadPolicy.bend as SstReadPolicy
2 imports
import Base import ./coordinator/QueuePolicy.bend as QueuePolicy
Types
type Decision source · line 5 · raw
Data
Classifies a single SST size against format and caller byte limits.
TooSmallDecision
WithinBudgetDecision
OverBudgetDecision
type TotalDecision source · line 11 · raw
Data
Carries the next aggregate byte total only when admission succeeds.
TotalAdmitted@next_total:Nat -> TotalDecision
TotalRejectedTotalDecision
Definitions
def within_budget source · line 16 · raw
@size:Nat -> @max_bytes:Nat -> Bool
Accepts a table only when its size is within the configured file budget.
def classify.copies source · line 19 · raw
@pair:Pair(Nat, Nat) -> @max_bytes:Nat -> Decision
def classify source · line 27 · raw
@size:Nat -> @max_bytes:Nat -> Decision
Separates undersized corruption from a valid but oversized table.
def total.copies source · line 30 · raw
@totals:Pair(Nat, Nat) -> @sizes:Pair(Nat, Nat) -> @max_bytes:Nat -> TotalDecision
def total_decision source · line 44 · raw
@total:Nat -> @size:Nat -> @max_bytes:Nat -> TotalDecision
Checks a file against the remaining aggregate budget before decoding.