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 ¶
- func Add(nsp *Nulls, rows ...uint64)
- func AddRange(nsp *Nulls, start, end uint64)
- func Any(nsp *Nulls) bool
- func Contains(nsp *Nulls, row uint64) bool
- func Del(nsp *Nulls, rows ...uint64)
- func Filter(nsp *Nulls, sels []int64, negate bool)
- func FilterCount(nsp *Nulls, sels []int64) int
- func Or(nsp, m, r *Nulls)
- func Ptr(nsp *Nulls) *uint64
- func Range(nsp *Nulls, start, end, bias uint64, m *Nulls)
- func RemoveRange(nsp *Nulls, start, end uint64)
- func Set(nsp, m *Nulls)
- func Size(nsp *Nulls) int
- func String(nsp *Nulls) string
- func ToArray[T constraints.Integer](nsp *Nulls) []T
- func TryExpand(nsp *Nulls, size int)
- type Bitmap
- type Nulls
- func (nsp *Nulls) Add(rows ...uint64)
- func (nsp *Nulls) AddRange(start, end uint64)
- func (nsp *Nulls) Any() bool
- func (nsp *Nulls) Build(size int, rows ...uint64)
- func (nsp *Nulls) Clone() *Nulls
- func (nsp *Nulls) Contains(row uint64) bool
- func (nsp *Nulls) Count() int
- func (nsp *Nulls) Del(rows ...uint64)
- func (nsp *Nulls) DelI64(rows ...int64)
- func (nsp *Nulls) EmptyByFlag() bool
- func (nsp *Nulls) Foreach(fn func(uint64) bool)
- func (nsp *Nulls) GetBitmap() *bitmap.Bitmap
- func (nsp *Nulls) GetCardinality() int
- func (nsp *Nulls) InitWith(n *Nulls)
- func (nsp *Nulls) InitWithSize(size int)
- func (nsp *Nulls) IsEmpty() bool
- func (nsp *Nulls) IsSame(m *Nulls) bool
- func (nsp *Nulls) Merge(o *Nulls)
- func (nsp *Nulls) Or(m *Nulls) *Nulls
- func (nsp *Nulls) Read(data []byte) error
- func (nsp *Nulls) ReadNoCopy(data []byte) error
- func (nsp *Nulls) Reset()
- func (nsp *Nulls) Set(row uint64)
- func (nsp *Nulls) Show() ([]byte, error)
- func (nsp *Nulls) String() string
- func (nsp *Nulls) ToArray() []uint64
- func (nsp *Nulls) ToI64Arrary() []int64
- func (nsp *Nulls) Unset(row uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterCount ¶
FilterCount returns the number count that appears in both nsp and sel
func Or ¶
func Or(nsp, m, r *Nulls)
Or performs union operation on Nulls nsp,m and store the result in r
func Range ¶
Range adds the numbers in nsp starting at start and ending at end to m. `bias` represents the starting offset used for the Range Output Always update in place.
func RemoveRange ¶
func Set ¶
func Set(nsp, m *Nulls)
Set performs union operation on Nulls nsp,m and store the result in nsp
func ToArray ¶ added in v0.8.0
func ToArray[T constraints.Integer](nsp *Nulls) []T
Types ¶
type Nulls ¶
type Nulls struct {
// contains filtered or unexported fields
}
func NewWithSize ¶ added in v0.5.1
func (*Nulls) Any ¶ added in v0.5.1
XXX This emptyFlag thing is broken -- it simply cannot be used concurrently. Make any an alias of EmptyByFlag, otherwise there will be hell lots of race conditions.
func (*Nulls) Contains ¶ added in v0.5.1
Contains returns true if the integer is contained in the Nulls
func (*Nulls) EmptyByFlag ¶ added in v0.8.0
func (*Nulls) GetCardinality ¶ added in v0.8.0
func (*Nulls) InitWithSize ¶ added in v0.8.0
func (*Nulls) Or ¶
XXX This API is foundementally broken. Depends on empty or not this shit may or may not modify nsp.