function makeBloomFilter(elements, bitCount, hashes) {
const bits = new Array(bitCount).fill(false);
for (const el of elements) {
for (const hash of hashes) {
const bit = hash(el);
bits[bit] = 1;
}
}
const table = arrow.Table.new(arrow.BoolVector.from(bits), ['filter']);
return table;
}