Documentation ¶
Index ¶
- func BatchToProtoBatch(bat *Batch) (*api.Batch, error)
- func Cow(bat *Batch)
- func Length(bat *Batch) int
- func Reorder(bat *Batch, attrs []string)
- func SetLength(bat *Batch, n int)
- type Batch
- func (bat *Batch) Append(mh *mpool.MPool, b *Batch) (*Batch, error)
- func (bat *Batch) Clean(m *mpool.MPool)
- func (bat *Batch) ExpandNulls()
- func (bat *Batch) GetSubBatch(cols []string) *Batch
- func (bat *Batch) GetVector(pos int32) *vector.Vector
- func (bat *Batch) InitZsOne(len int)
- func (bat *Batch) Length() int
- func (bat *Batch) MarshalBinary() ([]byte, error)
- func (bat *Batch) Prefetch(poses []int32, vecs []*vector.Vector)
- func (bat *Batch) SetAttributes(attrs []string)
- func (bat *Batch) SetVector(pos int32, vec *vector.Vector)
- func (bat *Batch) SetZs(len int, m *mpool.MPool)
- func (bat *Batch) Shrink(sels []int64)
- func (bat *Batch) Shuffle(sels []int64, m *mpool.MPool) error
- func (bat *Batch) Size() int
- func (bat *Batch) String() string
- func (bat *Batch) UnmarshalBinary(data []byte) error
- func (bat *Batch) VectorCount() int
- type EncodeBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶
type Batch struct { // Ro if true, Attrs is read only Ro bool // reference count, default is 1 Cnt int64 // Attrs column name list Attrs []string // Vecs col data Vecs []*vector.Vector // ring Zs []int64 Aggs []agg.Agg[any] Ht any // hash table }
Batch represents a part of a relationship including an optional list of row numbers, columns and list of attributes
(SelsData, Sels) - list of row numbers (Attrs) - list of attributes (vecs) - columns
func NewWithSize ¶ added in v0.5.0
func (*Batch) ExpandNulls ¶ added in v0.5.1
func (bat *Batch) ExpandNulls()
func (*Batch) GetSubBatch ¶ added in v0.6.0
func (*Batch) MarshalBinary ¶ added in v0.6.0
func (*Batch) SetAttributes ¶ added in v0.6.0
func (*Batch) UnmarshalBinary ¶ added in v0.6.0
func (*Batch) VectorCount ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.