Documentation
¶
Overview ¶
Package bloom implements a Bloom filter, a space-efficient probabilistic data structure used to test whether an element is a member of a set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
Hasher Hasher
// contains filtered or unexported fields
}
Filter represents a Bloom filter.
func NewFilter ¶
NewFilter creates a new Bloom filter optimized for n items with a false positive probability p using the provided hash function.
Click to show internal directories.
Click to hide internal directories.