bloom

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

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

Go to latest
Published: Oct 26, 2015 License: MIT Imports: 2 Imported by: 9 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

bloom

A set of bloom filter implementations, including

  • Standard
  • Partitioned
  • Scalable

Additional information regarding benchmarks is here.

For examples, take a look at the *_test.go files in each of the directories.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func K

func K(e float64) uint

func M

func M(n uint, p, e float64) uint

func S

func S(m, k uint) uint

Types

type Bloom

type Bloom interface {
	Add(key []byte) Bloom
	Check(key []byte) bool
	Count() uint
	PrintStats()
	SetHasher(hash.Hash)
	Reset()
	FillRatio() float64
	EstimatedFillRatio() float64
	SetErrorProbability(e float64)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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