standard

package
v0.0.0-...-cce1714 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2013 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(n uint) bloom.Bloom

New initializes a new partitioned bloom filter. n is the number of items this bloom filter predicted to hold.

Types

type StandardBloom

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

StandardBloom is the classic bloom filter implementation

func (*StandardBloom) Add

func (this *StandardBloom) Add(item []byte) bloom.Bloom

func (*StandardBloom) Check

func (this *StandardBloom) Check(item []byte) bool

func (*StandardBloom) Count

func (this *StandardBloom) Count() uint

func (*StandardBloom) EstimatedFillRatio

func (this *StandardBloom) EstimatedFillRatio() float64

func (*StandardBloom) FillRatio

func (this *StandardBloom) FillRatio() float64

func (*StandardBloom) PrintStats

func (this *StandardBloom) PrintStats()

func (*StandardBloom) Reset

func (this *StandardBloom) Reset()

func (*StandardBloom) SetErrorProbability

func (this *StandardBloom) SetErrorProbability(e float64)

func (*StandardBloom) SetHasher

func (this *StandardBloom) SetHasher(h hash.Hash)

Jump to

Keyboard shortcuts

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