count

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountRing

type CountRing struct {
	Da  []byte
	Ns  []int64
	Vs  []int64
	Typ types.Type
}

func NewCount

func NewCount(typ types.Type) *CountRing

func (*CountRing) Add

func (r *CountRing) Add(a interface{}, x, y int64)

func (*CountRing) BatchAdd

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

func (*CountRing) BatchFill

func (r *CountRing) BatchFill(start int64, os []uint8, vps []uint64, zs []int64, vec *vector.Vector)

func (*CountRing) BulkFill

func (r *CountRing) BulkFill(i int64, zs []int64, vec *vector.Vector)

func (*CountRing) Count

func (r *CountRing) Count() int

func (*CountRing) Dup

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

func (*CountRing) Eval

func (r *CountRing) Eval(_ []int64) *vector.Vector

func (*CountRing) Fill

func (r *CountRing) Fill(i int64, sel, z int64, vec *vector.Vector)

func (*CountRing) Free

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

func (*CountRing) Grow

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

func (*CountRing) Grows

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

func (*CountRing) Mul

func (r *CountRing) Mul(a interface{}, x, y, z int64)

r[x] += a[y] * z

func (*CountRing) SetLength

func (r *CountRing) SetLength(n int)

func (*CountRing) Shrink

func (r *CountRing) Shrink(sels []int64)

func (*CountRing) Shuffle

func (r *CountRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*CountRing) Size

func (r *CountRing) Size() int

func (*CountRing) String

func (r *CountRing) String() string

func (*CountRing) Type

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

type DistCountRing added in v0.5.0

type DistCountRing struct {
	Da  []byte
	Ns  []int64
	Vs  []int64
	Typ types.Type
	Ms  []map[any]uint8
}

func NewDistinctCount added in v0.5.0

func NewDistinctCount(typ types.Type) *DistCountRing

func (*DistCountRing) Add added in v0.5.0

func (r *DistCountRing) Add(a interface{}, x, y int64)

func (*DistCountRing) BatchAdd added in v0.5.0

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

func (*DistCountRing) BatchFill added in v0.5.0

func (r *DistCountRing) BatchFill(start int64, os []uint8, vps []uint64, zs []int64, vec *vector.Vector)

func (*DistCountRing) BulkFill added in v0.5.0

func (r *DistCountRing) BulkFill(i int64, zs []int64, vec *vector.Vector)

func (*DistCountRing) Count added in v0.5.0

func (r *DistCountRing) Count() int

func (*DistCountRing) Dup added in v0.5.0

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

func (*DistCountRing) Eval added in v0.5.0

func (r *DistCountRing) Eval(_ []int64) *vector.Vector

func (*DistCountRing) Fill added in v0.5.0

func (r *DistCountRing) Fill(i int64, sel, z int64, vec *vector.Vector)

func (*DistCountRing) Free added in v0.5.0

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

func (*DistCountRing) Grow added in v0.5.0

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

func (*DistCountRing) Grows added in v0.5.0

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

func (*DistCountRing) Mul added in v0.5.0

func (r *DistCountRing) Mul(a interface{}, x, y, z int64)

r[x] += a[y] * z

func (*DistCountRing) SetLength added in v0.5.0

func (r *DistCountRing) SetLength(n int)

func (*DistCountRing) Shrink added in v0.5.0

func (r *DistCountRing) Shrink(sels []int64)

func (*DistCountRing) Shuffle added in v0.5.0

func (r *DistCountRing) Shuffle(_ []int64, _ *mheap.Mheap) error

func (*DistCountRing) Size added in v0.5.0

func (r *DistCountRing) Size() int

func (*DistCountRing) String added in v0.5.0

func (r *DistCountRing) String() string

func (*DistCountRing) Type added in v0.5.0

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

Jump to

Keyboard shortcuts

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