def records

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:355

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

355# Encode each entry independently, retaining only the record fragments for one block.
356def records(entries: List<&2, MemTable.Entry>) -> Result<&1, &1, Error, List<&1, Bytes.Bytes>>:
357  match entries:
358    case Nil{}:
359      Done{Nil{}}
360    case Con{entry, +rest}:
361          records.step(rest, encode_record(entry), Nil{})

Uses (7)

Used by (1)