redcuckoo

package
v0.0.0-...-41bdb7a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MurmurHash64ABloom

func MurmurHash64ABloom(key []byte, seed uint64) uint64

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice without memory allocation.

Types

type RedCuckooFilter

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

func NewCuckooFilter

func NewCuckooFilter(capacity uint, bucketSize, maxIterations, expansion uint) *RedCuckooFilter

func (*RedCuckooFilter) Check

func (cf *RedCuckooFilter) Check(data []byte) bool

int CuckooFilter_Check(const CuckooFilter *filter, CuckooHash hash);

func (*RedCuckooFilter) Delete

func (cf *RedCuckooFilter) Delete(data []byte)

int CuckooFilter_Delete(CuckooFilter *filter, CuckooHash hash);

func (*RedCuckooFilter) Hash

func (c *RedCuckooFilter) Hash(value []byte) uint64

func (*RedCuckooFilter) Insert

func (cf *RedCuckooFilter) Insert(data []byte, isNx bool)

func (*RedCuckooFilter) LoadFrom

func (cf *RedCuckooFilter) LoadFrom(dump string, iter int64) bool

func (*RedCuckooFilter) Release

func (cf *RedCuckooFilter) Release()

Jump to

Keyboard shortcuts

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