def block_keys

mylsm-lsm-store@0.6.0.1 · src/Sstable.bend:78

import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable
import Base
import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable

78# Handle the block keys for the SSTable indexes, filters, and lookup.
79def block_keys(+chunks: List<&2, List<&2, MemTable.Entry>>, acc: List<&2, String>) -> List<&2, String>:
80  match chunks:
81    case Nil{}:
82      List.reverse(&2, String, acc)
83    case Con{c, t}:
84      block_keys(t, block_cons_acc(chunk_head_key(c), acc))

Uses (6)

Used by (2)