Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountingBloomFilter ¶
type CountingBloomFilter interface {
// Add hashes the input string and adds it to the filter by incrementing the entry at the hash % size
Add(s string)
// Remove hashes the input string and removes it from the filter by decrementing the entry at the hash % size
Remove(s string)
// Test hashes the input string and checks the entries at hash % size to say whether that string has possibly been added to the filter
Test(s string) bool
// contains filtered or unexported methods
}
CountingBloomFilter is an interface for a Bloom Filter that supports removal through counting
func CreateCBF ¶
func CreateCBF(size uint32) CountingBloomFilter
CreateCBF creates an implementation of CountingBloomFilter that uses 1-byte entries
func CreateLoggingCBF ¶
func CreateLoggingCBF(cbf CountingBloomFilter) CountingBloomFilter
CreateLoggingCBF wraps an existing CBF with logging to STDOUT
Click to show internal directories.
Click to hide internal directories.