Documentation ¶
Overview ¶
Package bloom implements a Bloom Filter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a bloom filter.
func New ¶
New constructs a new Filter with a filter set size 2^mLn2 bits, and false postive rate p.
func (*Filter) Entries ¶
Entries returns the number of entries that have been inserted into the Filter.
func (*Filter) MaxEntries ¶
MaxEntries returns the maximum capacity of the Filter.
func (*Filter) Test ¶
Test tests the Filter for a given value's membership and returns true iff it is present (or a false positive).
Click to show internal directories.
Click to hide internal directories.