Skip to content

Commit ed55787

Browse files
committed
Counting Bloom filter: fix AddAll
1 parent 29dc59b commit ed55787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/bulk-insert-and-query.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ struct FilterAPI<CountingBloomFilter<ItemType, bits_per_item, branchless, HashFa
495495
table->Add(key);
496496
}
497497
static void AddAll(const vector<ItemType> keys, const size_t start, const size_t end, Table* table) {
498-
throw std::runtime_error("Unsupported");
498+
table->AddAll(keys, start, end);
499499
}
500500
CONTAIN_ATTRIBUTES
501501
static bool Contain(uint64_t key, const Table * table) {
@@ -1218,7 +1218,7 @@ int main(int argc, char * argv[]) {
12181218
if (algorithmId == 44 || algorithmId < 0 || (algos.find(44) != algos.end())) {
12191219
auto cf = FilterBenchmark<
12201220
CountingBloomFilter<uint64_t, 10, true, SimpleMixSplit>>(
1221-
add_count, to_add, distinct_add, to_lookup, distinct_lookup, intersectionsize, hasduplicates, mixed_sets, seed);
1221+
add_count, to_add, distinct_add, to_lookup, distinct_lookup, intersectionsize, hasduplicates, mixed_sets, seed, true);
12221222
cout << setw(NAME_WIDTH) << names[44] << cf << endl;
12231223
}
12241224

0 commit comments

Comments
 (0)