series

package
v0.0.0-...-034a78d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiVerSeriesIDSet

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

MultiVerSeriesIDSet represents a multi version series ids set, can do and/or/and not operator, NOTICE: stores the result in the current bitmap, not safe for goroutine concurrent. version-> a bitmap of series ids.

func NewMultiVerSeriesIDSet

func NewMultiVerSeriesIDSet() *MultiVerSeriesIDSet

NewMultiVerSeriesIDSet creates a multi-version series id set

func (*MultiVerSeriesIDSet) Add

func (mv *MultiVerSeriesIDSet) Add(version int64, ids *roaring.Bitmap)

Add adds a series id set version to map, if version exist ignore new ids

func (*MultiVerSeriesIDSet) And

func (mv *MultiVerSeriesIDSet) And(other *MultiVerSeriesIDSet)

And computes the intersection between two set and stores the result in the current set

func (*MultiVerSeriesIDSet) AndNot

func (mv *MultiVerSeriesIDSet) AndNot(other *MultiVerSeriesIDSet)

AndNot computes the difference between two set and stores the result in the current set

func (*MultiVerSeriesIDSet) IsEmpty

func (mv *MultiVerSeriesIDSet) IsEmpty() bool

IsEmpty returns true if the multi-versions is empty or all bitmap is empty under versions

func (*MultiVerSeriesIDSet) Or

Or computes the union between two set and stores the result in the current set

Jump to

Keyboard shortcuts

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