Documentation
¶
Index ¶
- Variables
- 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) AddCnt(cnt int)
- func (bat *Batch) AntiShrink(sels []int64)
- func (bat *Batch) Append(ctx context.Context, mh *mpool.MPool, b *Batch) (*Batch, error)
- func (bat *Batch) Clean(m *mpool.MPool)
- func (bat *Batch) CleanOnlyData()
- func (bat *Batch) Dup(mp *mpool.MPool) (*Batch, error)
- func (bat *Batch) GetCnt() int64
- 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) ReplaceVector(oldVec *vector.Vector, newVec *vector.Vector)
- func (bat *Batch) SetAttributes(attrs []string)
- func (bat *Batch) SetCnt(cnt int64)
- 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) SubCnt(cnt int)
- func (bat *Batch) UnmarshalBinary(data []byte) error
- func (bat *Batch) VectorCount() int
- type EncodeBatch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyBatch = &Batch{} EmptyForConstFoldBatch = NewWithSize(0) )
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] AuxData any // hash table, runtime filter, etc. }
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) AntiShrink ¶ added in v0.8.0
func (*Batch) CleanOnlyData ¶ added in v0.8.0
func (bat *Batch) CleanOnlyData()
func (*Batch) GetSubBatch ¶ added in v0.6.0
func (*Batch) MarshalBinary ¶ added in v0.6.0
func (*Batch) ReplaceVector ¶ added in v0.8.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
type EncodeBatch ¶ added in v0.6.0
func (*EncodeBatch) MarshalBinary ¶ added in v0.8.0
func (m *EncodeBatch) MarshalBinary() ([]byte, error)
func (*EncodeBatch) UnmarshalBinary ¶ added in v0.8.0
func (m *EncodeBatch) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.