1 /*-------------------------------------------------------------------------
4 * Space-efficient set membership testing
6 * Copyright (c) 2018-2021, PostgreSQL Global Development Group
9 * src/include/lib/bloomfilter.h
11 *-------------------------------------------------------------------------
16 typedef struct bloom_filter bloom_filter
;
18 extern bloom_filter
*bloom_create(int64 total_elems
, int bloom_work_mem
,
20 extern void bloom_free(bloom_filter
*filter
);
21 extern void bloom_add_element(bloom_filter
*filter
, unsigned char *elem
,
23 extern bool bloom_lacks_element(bloom_filter
*filter
, unsigned char *elem
,
25 extern double bloom_prop_bits_set(bloom_filter
*filter
);
27 #endif /* BLOOMFILTER_H */