roaring

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiLog

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

func NewStore

func NewStore(store persist.Saver) *MultiLog

NewStore returns a new multilog that is only good to store sequences It uses files to store roaring bitmaps directly. for this it turns the indexes.Addrs into a hex string.

func (*MultiLog) Close

func (log *MultiLog) Close() error

func (*MultiLog) Delete

func (log *MultiLog) Delete(addr indexes.Addr) error

func (*MultiLog) Flush added in v0.2.0

func (log *MultiLog) Flush() error

func (*MultiLog) Get

func (log *MultiLog) Get(addr indexes.Addr) (margaret.Log, error)

func (*MultiLog) List

func (log *MultiLog) List() ([]indexes.Addr, error)

List returns a list of all stored sublogs

func (*MultiLog) LoadInternalBitmap added in v0.1.4

func (log *MultiLog) LoadInternalBitmap(key indexes.Addr) (*sroar.Bitmap, error)

LoadInternalBitmap loads the raw roaringbitmap for key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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