Documentation ¶
Overview ¶
Package bloom implements Bloom filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterPolicy ¶
type FilterPolicy int
FilterPolicy implements the FilterPolicy interface from the pebble package.
The integer value is the approximate number of bits used per key. A good value is 10, which yields a filter with ~ 1% false positive rate.
func (FilterPolicy) MayContain ¶
func (p FilterPolicy) MayContain(ftype base.FilterType, f, key []byte) bool
MayContain implements the pebble.FilterPolicy interface.
func (FilterPolicy) Name ¶
func (p FilterPolicy) Name() string
Name implements the pebble.FilterPolicy interface.
func (FilterPolicy) NewWriter ¶
func (p FilterPolicy) NewWriter(ftype base.FilterType) base.FilterWriter
NewWriter implements the pebble.FilterPolicy interface.
Click to show internal directories.
Click to hide internal directories.