internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const BucketSize = 4

BucketSize defines number of bytes per Bucket

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket [BucketSize]byte

Bucket represents a row in Cuckoo Filter's hashtable.

func (*Bucket) Delete

func (b *Bucket) Delete(fp byte) bool

Delete tries to find and reset a slot for given fingerprint.

func (*Bucket) Insert

func (b *Bucket) Insert(fp byte) bool

Insert tries to insert a fingerprint into the bucket. If all slots are occupied (!= 0) return false, otherwise true.

func (*Bucket) Lookup

func (b *Bucket) Lookup(fp byte) bool

Lookup lineary checks if given fingerprint exists in the bucket.

Jump to

Keyboard shortcuts

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