def maybe_present

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

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

208# Handle the optional value for present for the SSTable indexes, filters, and lookup.
209def maybe_present(tab: Table, +key: String) -> Bool:
210  match tab:
211    case Tbl{entries, filter, nbits, smallest, largest, count, chunks, blocks}:
212      bloom_test(filter, key)

Uses (4)

Used by (1)