def measure_key

mylsm-lsm-store@0.6.0.1 · src/scan/SstCursor.bend:383

import mylsm-lsm-store@0.6.0.1/src/scan/SstCursor.bend as SstCursor
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal
import mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader.bend as ByteBlockReader
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

383# Handles measure key.
384def measure_key(path: String, key: Bytes.Bytes)
385  -> IO(Result<&1, &1, U32 & String, ByteWal.ValueMetadata>):
386  do IO<Result<&1, &1, U32 & String, ByteWal.ValueMetadata>>:
387    opened : Result<&1, &1, U32 & String, ByteBlockReader.Reader> <-
388      ByteBlockReader.open(path)
389    measure.key.opened(key, opened)

Uses (11)

Used by (2)