dablooms

package
v0.0.0-...-ca6883d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: ISC, MIT Imports: 2 Imported by: 0

README

godablooms

For the Go package you can install outside of make via:

$ go get github.com/bitly/dablooms/godablooms

However, we recommend using go-install-as:

$ go tool install_as --import-as=bitly/dablooms

To run tests:

$ go test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type ScalingBloom

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

func NewScalingBloom

func NewScalingBloom(capacity C.uint, errorRate C.double, filename string) *ScalingBloom

func NewScalingBloomFromFile

func NewScalingBloomFromFile(capacity C.uint, errorRate C.double, filename string) *ScalingBloom

func (*ScalingBloom) Add

func (sb *ScalingBloom) Add(key []byte, id C.uint64_t) bool

func (*ScalingBloom) Check

func (sb *ScalingBloom) Check(key []byte) bool

func (*ScalingBloom) DiskSeqNum

func (sb *ScalingBloom) DiskSeqNum() C.uint64_t

func (*ScalingBloom) Flush

func (sb *ScalingBloom) Flush() bool

func (*ScalingBloom) MemSeqNum

func (sb *ScalingBloom) MemSeqNum() C.uint64_t

func (*ScalingBloom) Remove

func (sb *ScalingBloom) Remove(key []byte, id C.uint64_t) bool

Jump to

Keyboard shortcuts

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