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 (*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.