Sstable.block_pick: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/Sstable.bend as Sstable Lines 484-496 of mylsm-lsm-store@0.6.0.1/src/Sstable.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/Sstable.bend&start_line=484&end_line=496 import Base import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keys import mylsm-lsm-store@0.6.0.1/src/MemTable.bend as MemTable # Handle the block pick for the SSTable indexes, filters, and lookup. def block_pick( +chunks: List<&2, List<&2, MemTable.Entry>>, +blocks: List<&2, String>, +key: String ) -> List<&2, MemTable.Entry>: match chunks blocks: case Nil{} _: Nil{} case _ Nil{}: Nil{} case Con{c, ct} Con{b, bt}: chunk_at(chunks, pick_ix(bt, ct, 0n, key, Keys.cmp(b, key))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Keys.bend&name=cmp https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/MemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Sstable.bend&name=chunk_at https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Sstable.bend&name=pick_ix