bloom

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

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 for a set of strings.

func NewFilter

func NewFilter(elems []string) *Filter

NewFilter constructs a new Filter with the given elements.

func (*Filter) MayContain

func (f *Filter) MayContain(s string) bool

MayContain reports whether the filter may contain s.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL