create_bloom_filter
Creates a Bloom filter context.
Description
The context::create_bloom_filter
operator constructs a new context of type
Bloom filter.
To find suitable values for the capacity and false-positive probability, Consult
Thomas Hurst's Bloom Filter Calculator. The
parameter p
corresponds to capacity
and p
to fp_probability
.
You can also create a Bloom filter context as code by adding it to
tenzir.contexts
in your tenzir.yaml
:
Making changes to arguments
of an already created context has no effect.
name: string
The name of the new Bloom filter.
capacity = uint
The maximum number of items in the filter that maintain the false positive probability. Adding more elements does not yield an error, but lookups will more likely return false positives.
fp_probability = float
The false-positive probability of the Bloom filter.
Examples
Create a new Bloom filter context
See Also
context::create_lookup_table
,
context::create_geoip
,
context::enrich
,
context::erase
,
context::inspect
,
context::list
,
context::load
,
context::remove
,
context::reset
,
context::save
,
context::update
,