bloom

package
v0.0.0-...-110d06e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSize = 2 << 24 // 2048576

https://github.com/bits-and-blooms/bloom/blob/master/bloom.go

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Set  *bitset.BitSet
	Func [6]SimpleHash
}

func NewFilter

func NewFilter() *Filter

func (Filter) Add

func (bf Filter) Add(value string)

func (Filter) Contains

func (bf Filter) Contains(value string) bool

type SimpleHash

type SimpleHash struct {
	Cap  uint
	Seed uint
}

Jump to

Keyboard shortcuts

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