Documentation ¶
Index ¶
- type MultiVerSeriesIDSet
- func (mv *MultiVerSeriesIDSet) Add(version int64, ids *roaring.Bitmap)
- func (mv *MultiVerSeriesIDSet) And(other *MultiVerSeriesIDSet)
- func (mv *MultiVerSeriesIDSet) AndNot(other *MultiVerSeriesIDSet)
- func (mv *MultiVerSeriesIDSet) IsEmpty() bool
- func (mv *MultiVerSeriesIDSet) Or(other *MultiVerSeriesIDSet)
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 ¶
func (mv *MultiVerSeriesIDSet) Or(other *MultiVerSeriesIDSet)
Or computes the union between two set and stores the result in the current set