prob

package
v1.3.25 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package prob implements fully features dynamic probabilistic filter.

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

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
}

Filter is dynamic probabilistic filter which grows if there is more space needed.

NOTE: Underneath it uses Cuckoo filters - Bloom filters could be also used but in the future we might need `Delete` method which Bloom filters cannot implement.

func NewDefaultFilter

func NewDefaultFilter() *Filter

func NewFilter

func NewFilter(initSize uint) *Filter

func (*Filter) Delete

func (f *Filter) Delete(k []byte)

func (*Filter) Insert

func (f *Filter) Insert(k []byte)

func (*Filter) Lookup

func (f *Filter) Lookup(k []byte) 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