def bloom_add

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

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

182# Handle Bloom filter data for add for the SSTable indexes, filters, and lookup.
183def bloom_add(bloom: Bloom, +key: String) -> Bloom:
184  match bloom:
185    case Blm{bits, +size}:
186      Blm{bit_set(bhash_n(key, 17, size), bit_set(bhash_n(key, 257, size), bits)), size}

Uses (4)

Used by (1)