bitmap

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitmap

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

Bitmap represents line numbers of tuple's is null

func New

func New(n int) *Bitmap

func (*Bitmap) Add

func (n *Bitmap) Add(row uint64)

func (*Bitmap) AddMany

func (n *Bitmap) AddMany(rows []uint64)

func (*Bitmap) AddRange

func (n *Bitmap) AddRange(start, end uint64)

func (*Bitmap) And added in v0.6.0

func (n *Bitmap) And(m *Bitmap)

func (*Bitmap) C_And added in v0.6.0

func (n *Bitmap) C_And(m *Bitmap)

func (*Bitmap) C_Count added in v0.6.0

func (n *Bitmap) C_Count() uint64

func (*Bitmap) C_IsEmpty added in v0.6.0

func (n *Bitmap) C_IsEmpty() bool

func (*Bitmap) C_Or added in v0.6.0

func (n *Bitmap) C_Or(m *Bitmap)

func (*Bitmap) Clear

func (n *Bitmap) Clear()

func (*Bitmap) Clone added in v0.6.0

func (n *Bitmap) Clone() *Bitmap

func (*Bitmap) Contains

func (n *Bitmap) Contains(row uint64) bool

Contains returns true if the row is contained in the Bitmap

func (*Bitmap) Count

func (n *Bitmap) Count() int

func (*Bitmap) Filter

func (n *Bitmap) Filter(sels []int64) *Bitmap

func (*Bitmap) IsEmpty

func (n *Bitmap) IsEmpty() bool

IsEmpty returns true if no bit in the Bitmap is set, otherwise it will return false.

func (*Bitmap) IsSame added in v0.6.0

func (n *Bitmap) IsSame(m *Bitmap) bool

func (*Bitmap) Iterator

func (n *Bitmap) Iterator() Iterator

func (*Bitmap) Len

func (n *Bitmap) Len() int

func (*Bitmap) Marshal

func (n *Bitmap) Marshal() []byte

func (*Bitmap) MarshalBinary added in v0.6.0

func (n *Bitmap) MarshalBinary() ([]byte, error)

func (*Bitmap) Or

func (n *Bitmap) Or(m *Bitmap)

func (*Bitmap) Ptr added in v0.6.0

func (n *Bitmap) Ptr() *uint64

func (*Bitmap) Remove

func (n *Bitmap) Remove(row uint64)

func (*Bitmap) RemoveRange

func (n *Bitmap) RemoveRange(start, end uint64)

func (*Bitmap) Size

func (n *Bitmap) Size() int

func (*Bitmap) String

func (n *Bitmap) String() string

func (*Bitmap) ToArray

func (n *Bitmap) ToArray() []uint64

func (*Bitmap) TryExpand

func (n *Bitmap) TryExpand(m *Bitmap)

func (*Bitmap) TryExpandWithSize

func (n *Bitmap) TryExpandWithSize(size int)

func (*Bitmap) Unmarshal

func (n *Bitmap) Unmarshal(data []byte)

func (*Bitmap) UnmarshalBinary added in v0.6.0

func (n *Bitmap) UnmarshalBinary(data []byte) error

type BitmapIterator

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

func (*BitmapIterator) HasNext

func (itr *BitmapIterator) HasNext() bool

func (*BitmapIterator) Next

func (itr *BitmapIterator) Next() uint64

func (*BitmapIterator) PeekNext

func (itr *BitmapIterator) PeekNext() uint64

type Iterator

type Iterator interface {
	HasNext() bool
	Next() uint64
	PeekNext() uint64
}

Jump to

Keyboard shortcuts

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