~/bend-docscommunity

src/DurableBatchPolicy.bend checks

raw source on the hub · import mylsm-lsm-store@0.5.0.0/src/DurableBatchPolicy.bend as DurableBatchPolicy

1 import
import Base

Types

type Validation source · line 4 · raw

Data

Returns the count-limit decision for a mutation batch.

Definitions

def max_batch_count source · line 10 · raw

Nat

Returns the maximum number of mutations in a batch.

def within_batch_count source · line 14 · raw

@count:Nat -> Bool

Checks whether a batch count is within the allowed range.

def validate_count source · line 18 · raw

@count:Nat -> Validation

Rejects empty and oversized batches before writing.