cuckoou64

package module
v0.0.0-...-484fe7f Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 2 Imported by: 0

README

cuckoou64

A uint64 cuckoo filter using xxHash, 8-bit fingerprints, optimised for 64-bit architectures.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

func NewFilter

func NewFilter(cap, maxKicks uint32) *Filter

func (*Filter) Count

func (f *Filter) Count() uint32

func (*Filter) Insert

func (f *Filter) Insert(hash uint64) bool

func (*Filter) LoadFactor

func (f *Filter) LoadFactor() float32

func (*Filter) Lookup

func (f *Filter) Lookup(hash uint64) bool

func (*Filter) Reset

func (f *Filter) Reset()

Jump to

Keyboard shortcuts

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