bloomfilter

package
v0.0.0-...-b51443a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSize = 2 << 30

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSet

type BitSet struct {
	// contains filtered or unexported fields
}

func NewBitSet

func NewBitSet(cap uint64) *BitSet

func (*BitSet) Contains

func (b *BitSet) Contains(num uint64) bool

func (*BitSet) Set

func (b *BitSet) Set(num uint64)

type BloomFliter

type BloomFliter struct {
	// contains filtered or unexported fields
}

func NewBloomFilter

func NewBloomFilter() *BloomFliter

func (*BloomFliter) Add

func (b *BloomFliter) Add(v string)

func (*BloomFliter) Contains

func (b *BloomFliter) Contains(v string) bool

type SimpleHash

type SimpleHash struct {
	// contains filtered or unexported fields
}

func (*SimpleHash) Hash

func (s *SimpleHash) Hash(str string) uint64

Jump to

Keyboard shortcuts

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