bloom

package module
v0.0.0-...-a761f24 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 3 Imported by: 0

README

bloom

Simple bloom filter implementation written in Go.

http://en.wikipedia.org/wiki/Bloom_filter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Capacity  int
	ErrorRate float64
	// contains filtered or unexported fields
}

func New

func New(capacity int, errorRate float64) *Filter

func (*Filter) Add

func (f *Filter) Add(key []byte)

func (*Filter) Contains

func (f *Filter) Contains(key []byte) bool

func (*Filter) GetSizeInBytes

func (f *Filter) GetSizeInBytes() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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