Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
type BloomFilter[T Hashable] struct { // contains filtered or unexported fields }
func NewBloomFilter ¶
func NewBloomFilter[T Hashable](size int) *BloomFilter[T]
Create a new Bloom Filter
func (*BloomFilter[T]) Check ¶
func (b *BloomFilter[T]) Check(value T) bool
Check if an element is in the filter
func (*BloomFilter[T]) Reset ¶
func (b *BloomFilter[T]) Reset()
Clear the filter and reset the count
Click to show internal directories.
Click to hide internal directories.