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 ¶
- type NumericRing
- func (r *NumericRing) Add(ring interface{}, x, y int64)
- func (r *NumericRing) BatchAdd(ring interface{}, start int64, os []uint8, vps []uint64)
- func (r *NumericRing) BatchFill(offset int64, os []uint8, vps []uint64, cntOfRows []int64, vec *vector.Vector)
- func (r *NumericRing) BulkFill(idxOfGroup int64, cntOfRows []int64, vec *vector.Vector)
- func (r *NumericRing) Count() int
- func (r *NumericRing) Dup() ring.Ring
- func (r *NumericRing) Eval(cntOfRows []int64) *vector.Vector
- func (r *NumericRing) Fill(idxOfGroup, idxOfRow, cntOfRow int64, vec *vector.Vector)
- func (r *NumericRing) Free(m *mheap.Mheap)
- func (r *NumericRing) Grow(m *mheap.Mheap) error
- func (r *NumericRing) Grows(size int, m *mheap.Mheap) error
- func (r *NumericRing) Mul(ring interface{}, x, y, z int64)
- func (r *NumericRing) SetLength(n int)
- func (r *NumericRing) Shrink(selectedIndexes []int64)
- func (v *NumericRing) Shuffle(_ []int64, _ *mheap.Mheap) error
- func (r *NumericRing) Size() int
- func (r *NumericRing) String() string
- func (r *NumericRing) Type() types.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NumericRing ¶
type NumericRing struct {
Typ types.Type // vec value type
// some attributes for pre-computation
Data []byte
BitAndResult []uint64 // group's pre-computation result of bit_and and has the same address as Data field
// Values [][]int64 // value of groups
NullCnt []int64 // group to record number of the null value
}
func NewNumeric ¶
func NewNumeric(typ types.Type) *NumericRing
func (*NumericRing) Add ¶
func (r *NumericRing) Add(ring interface{}, x, y int64)
func (*NumericRing) BatchAdd ¶
func (r *NumericRing) BatchAdd(ring interface{}, start int64, os []uint8, vps []uint64)
func (*NumericRing) BulkFill ¶
func (r *NumericRing) BulkFill(idxOfGroup int64, cntOfRows []int64, vec *vector.Vector)
BulkFill update ring by a whole vector
func (*NumericRing) Count ¶
func (r *NumericRing) Count() int
func (*NumericRing) Dup ¶
func (r *NumericRing) Dup() ring.Ring
func (*NumericRing) Fill ¶
func (r *NumericRing) Fill(idxOfGroup, idxOfRow, cntOfRow int64, vec *vector.Vector)
Fill update NumericRing by a row
func (*NumericRing) Free ¶
func (r *NumericRing) Free(m *mheap.Mheap)
func (*NumericRing) Mul ¶
func (r *NumericRing) Mul(ring interface{}, x, y, z int64)
func (*NumericRing) SetLength ¶
func (r *NumericRing) SetLength(n int)
func (*NumericRing) Shrink ¶
func (r *NumericRing) Shrink(selectedIndexes []int64)
func (*NumericRing) Size ¶
func (r *NumericRing) Size() int
func (*NumericRing) String ¶
func (r *NumericRing) String() string
func (*NumericRing) Type ¶
func (r *NumericRing) Type() types.Type
Click to show internal directories.
Click to hide internal directories.