bitor

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: 7 Imported by: 0

Documentation

Overview

Copyright 2021 Matrix Origin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitOrRing

type BitOrRing struct {
	Typ        types.Type // vec value type
	Data       []byte
	Values     []uint64 // value
	NullCounts []int64  // group to record number of the null value
}

func NewBitOr

func NewBitOr(typ types.Type) *BitOrRing

func (*BitOrRing) Add

func (r *BitOrRing) Add(ring interface{}, x, y int64)

func (*BitOrRing) BatchAdd

func (r *BitOrRing) BatchAdd(ring interface{}, start int64, os []uint8, vps []uint64)

func (*BitOrRing) BatchFill

func (r *BitOrRing) BatchFill(offset int64, os []uint8, vps []uint64, cntOfRows []int64, vec *vector.Vector)

func (*BitOrRing) BulkFill

func (r *BitOrRing) BulkFill(idxOfGroup int64, cntOfRows []int64, vec *vector.Vector)

BulkFill update ring by a whole vector

func (*BitOrRing) Count

func (r *BitOrRing) Count() int

func (*BitOrRing) Dup

func (r *BitOrRing) Dup() ring.Ring

func (*BitOrRing) Eval

func (r *BitOrRing) Eval(cntOfRows []int64) *vector.Vector

func (*BitOrRing) Fill

func (r *BitOrRing) Fill(idxOfGroup, idxOfRow, cntOfRow int64, vec *vector.Vector)

Fill update Uint64Ring by a row

func (*BitOrRing) Free

func (r *BitOrRing) Free(m *mheap.Mheap)

func (*BitOrRing) Grow

func (r *BitOrRing) Grow(m *mheap.Mheap) error

func (*BitOrRing) Grows

func (r *BitOrRing) Grows(size int, m *mheap.Mheap) error

func (*BitOrRing) Mul

func (r *BitOrRing) Mul(ring interface{}, x, y, z int64)

func (*BitOrRing) SetLength

func (r *BitOrRing) SetLength(n int)

func (*BitOrRing) Shrink

func (r *BitOrRing) Shrink(selectedIndexes []int64)

func (*BitOrRing) Shuffle

func (v *BitOrRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*BitOrRing) Size

func (r *BitOrRing) Size() int

func (*BitOrRing) String

func (r *BitOrRing) String() string

func (*BitOrRing) Type

func (r *BitOrRing) Type() types.Type

Jump to

Keyboard shortcuts

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