Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
func New ¶
func New(m uint, k uint) *BloomFilter
New creates a new bloom filter with m bits and k hashing functions.
func NewEstimated ¶
func NewEstimated(n uint, fp float64) *BloomFilter
NewEstimated creates a new Bloom filter for about n items with fp false positive rate
func (*BloomFilter) Test ¶
func (f *BloomFilter) Test(data []byte) bool
Test checks for the presence of data in the Bloom filter
Click to show internal directories.
Click to hide internal directories.