crowd

package
v0.0.0-...-dac20d5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader interface {
	// Get get bitmap
	Get([]byte) (*roaring.Bitmap, error)
	// Set bitmap
	Set([]byte, []byte) (uint64, uint32, error)
}

Loader loader

func NewCKLoader

func NewCKLoader(address, name, password string) Loader

NewCKLoader returns a loader that load bitmap from clickhouse

func NewKVLoader

func NewKVLoader(store storage.Storage) Loader

NewKVLoader returns a KV bitmap loader

func NewKVShardLoader

func NewKVShardLoader(store storage.Storage, runner *task.Runner, workers int, retry time.Duration, maxCached uint64) Loader

NewKVShardLoader returns a KV shard bitmap loader

func NewRawLoader

func NewRawLoader() Loader

NewRawLoader returns raw loader

Jump to

Keyboard shortcuts

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