nulls

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package nulls wrap up functions for the manipulation of bitmap library roaring. MatrixOne uses nulls to store all NULL values in a column. You can think of Nulls as a bitmap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(n *Nulls, rows ...uint64)

func Any

func Any(n *Nulls) bool

Any returns true if any bit in the Nulls is set, otherwise it will return false.

func Contains

func Contains(n *Nulls, row uint64) bool

Contains returns true if the integer is contained in the Nulls

func Del

func Del(n *Nulls, rows ...uint64)

func FilterCount

func FilterCount(n *Nulls, sels []int64) int

FilterCount returns the number count that appears in both n and sel

func Length

func Length(n *Nulls) int

Length returns the number of integers contained in the Nulls

func New added in v0.5.1

func New(n *Nulls, size int)

func Or

func Or(n, m, r *Nulls)

Or performs union operation on Nulls n,m and store the result in r

func PreciseAny added in v0.5.1

func PreciseAny(n *Nulls) bool

Any returns true if any bit in the Nulls is set, otherwise it will return false.

func RemoveRange

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

func Reset

func Reset(n *Nulls)

func Set

func Set(n, m *Nulls)

Set performs union operation on Nulls n,m and store the result in n

func Size

func Size(n *Nulls) int

Size estimates the memory usage of the Nulls.

func String

func String(n *Nulls) string

func TryExpand added in v0.5.1

func TryExpand(n *Nulls, size int)

Types

type Nulls

type Nulls struct {
	Np *bitmap.Bitmap
}

func Filter

func Filter(n *Nulls, sels []int64) *Nulls

func NewWithSize added in v0.5.1

func NewWithSize(size int) *Nulls

func Range

func Range(n *Nulls, start, end uint64, m *Nulls) *Nulls

Range adds the numbers in n starting at start and ending at end to m. Return the result

func (*Nulls) Any added in v0.5.1

func (n *Nulls) Any() bool

func (*Nulls) Contains added in v0.5.1

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

func (*Nulls) Or

func (n *Nulls) Or(m *Nulls) *Nulls

func (*Nulls) Read

func (n *Nulls) Read(data []byte) error

func (*Nulls) Set added in v0.5.1

func (n *Nulls) Set(row uint64)

func (*Nulls) Show

func (n *Nulls) Show() ([]byte, error)

Jump to

Keyboard shortcuts

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