impl

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomFilter

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

func (*BloomFilter) Add

func (filter *BloomFilter) Add(key []byte) error

func (*BloomFilter) Close

func (filter *BloomFilter) Close() error

func (*BloomFilter) Delete

func (filter *BloomFilter) Delete(key []byte) error

func (*BloomFilter) Exists

func (filter *BloomFilter) Exists(key []byte) bool

func (*BloomFilter) Open

func (filter *BloomFilter) Open(fileName string) error

type CuckooFilterImpl

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

func (*CuckooFilterImpl) Add

func (filter *CuckooFilterImpl) Add(key []byte) error

func (*CuckooFilterImpl) Close

func (filter *CuckooFilterImpl) Close() error

func (*CuckooFilterImpl) Delete

func (filter *CuckooFilterImpl) Delete(key []byte) error

func (*CuckooFilterImpl) Exists

func (filter *CuckooFilterImpl) Exists(key []byte) bool

func (*CuckooFilterImpl) Open

func (filter *CuckooFilterImpl) Open(fileName string) error

type HyperLogLogFilter

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

HyperLogLogFilter wrapper filter which implements the HyperLogLog and HyperLogLog++ algorithms.

func (*HyperLogLogFilter) Add

func (filter *HyperLogLogFilter) Add(key []byte) error

Add the key to filter

func (*HyperLogLogFilter) Close

func (filter *HyperLogLogFilter) Close() error

Close hyperloglog file

func (*HyperLogLogFilter) Exists

func (filter *HyperLogLogFilter) Exists(key []byte) bool

Exists check if the key already in the filter, it will compare by add and check the count, will always add the key to the filter

func (*HyperLogLogFilter) Open

func (filter *HyperLogLogFilter) Open(fileName string) error

Open local persist file

type LeveldbFilter

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

func (*LeveldbFilter) Add

func (filter *LeveldbFilter) Add(key []byte) error

func (*LeveldbFilter) Close

func (filter *LeveldbFilter) Close() error

func (*LeveldbFilter) Delete

func (filter *LeveldbFilter) Delete(key []byte) error

func (*LeveldbFilter) Exists

func (filter *LeveldbFilter) Exists(key []byte) bool

func (*LeveldbFilter) Open

func (filter *LeveldbFilter) Open(fileName string) error

Jump to

Keyboard shortcuts

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