Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a bloom filter implementation
func NewFromBytes ¶
NewFromBytes decodes the filter from a sequence of bytes.
Note: data will be referenced inside the table.
func NewOptimal ¶
NewOptimal returns a filter based on expected element count and false positive rate.
func NewOptimalMaxSize ¶ added in v0.16.0
func NewOptimalMaxSize(expectedElements int, falsePositiveRate float64, maxSize memory.Size) *Filter
NewOptimalMaxSize returns a filter based on expected element count and false positive rate, capped at a maximum size in bytes
func (*Filter) Bytes ¶
Bytes encodes the filter into a sequence of bytes that can be transferred on network.
func (*Filter) Parameters ¶
Parameters returns filter parameters.
Click to show internal directories.
Click to hide internal directories.