bloomfilter

package module
v0.0.0-...-932358c Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

README

Bloom filter

Build Status Coverage Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitArray

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

func NewBitArray

func NewBitArray(length uint) *BitArray

func (*BitArray) Delete

func (b *BitArray) Delete(i uint)

func (*BitArray) Has

func (b *BitArray) Has(i uint) bool

func (*BitArray) Len

func (b *BitArray) Len() uint

func (*BitArray) Set

func (b *BitArray) Set(i uint)

type BloomFilter

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

func New

func New(m, k uint) *BloomFilter

func NewWithEstimate

func NewWithEstimate(n uint, p float64) *BloomFilter

func (*BloomFilter) Add

func (bf *BloomFilter) Add(str string) *BloomFilter

func (*BloomFilter) Check

func (bf *BloomFilter) Check(str string) bool

func (*BloomFilter) CheckAndAdd

func (bf *BloomFilter) CheckAndAdd(str string) bool

func (*BloomFilter) Clear

func (bf *BloomFilter) Clear() *BloomFilter

func (*BloomFilter) FalsePositiveRate

func (bf *BloomFilter) FalsePositiveRate(n uint) float64

*

Jump to

Keyboard shortcuts

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