Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func BatchToProtoBatch(bat *Batch) (*api.Batch, error)
 - func SetLength(bat *Batch, n int)
 - type Batch
 - func (bat *Batch) AddCnt(cnt int)
 - func (bat *Batch) AddRowCount(rowCount 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) DupJmAuxData() (ret *hashmap.JoinMap)
 - func (bat *Batch) End() bool
 - func (bat *Batch) GetCnt() int64
 - func (bat *Batch) GetSubBatch(cols []string) *Batch
 - func (bat *Batch) GetVector(pos int32) *vector.Vector
 - func (bat *Batch) IsEmpty() bool
 - func (bat *Batch) Last() bool
 - func (bat *Batch) Log(tag string)
 - func (bat *Batch) MarshalBinary() ([]byte, error)
 - func (bat *Batch) PreExtend(m *mpool.MPool, rows int) error
 - func (bat *Batch) Prefetch(poses []int32, vecs []*vector.Vector)
 - func (bat *Batch) ReplaceVector(oldVec *vector.Vector, newVec *vector.Vector)
 - func (bat *Batch) RowCount() int
 - func (bat *Batch) SetAttributes(attrs []string)
 - func (bat *Batch) SetCnt(cnt int64)
 - func (bat *Batch) SetEnd()
 - func (bat *Batch) SetLast()
 - func (bat *Batch) SetRowCount(rowCount int)
 - func (bat *Batch) SetVector(pos int32, vec *vector.Vector)
 - 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 ¶
Functions ¶
Types ¶
type Batch ¶
type Batch struct {
	// For recursive CTE, 1 is last batch, 2 is end of batch
	Recursive int32
	// Ro if true, Attrs is read only
	Ro         bool
	ShuffleIDX int //used only in shuffle dispatch
	// reference count, default is 1
	Cnt int64
	// Attrs column name list
	Attrs []string
	// Vecs col data
	Vecs []*vector.Vector
	// ring
	Aggs []agg.Agg[any]
	AuxData any // hash table, runtime filter, etc.
	// contains filtered or unexported fields
}
    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) AddRowCount ¶ added in v1.0.0
func (*Batch) AntiShrink ¶ added in v0.8.0
func (*Batch) CleanOnlyData ¶ added in v0.8.0
func (bat *Batch) CleanOnlyData()
func (*Batch) DupJmAuxData ¶ added in v1.0.0
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) SetRowCount ¶ added in v1.0.0
func (*Batch) UnmarshalBinary ¶ added in v0.6.0
func (*Batch) VectorCount ¶ added in v0.6.0
type EncodeBatch ¶ added in v0.6.0
type EncodeBatch struct {
	Vecs      []*vector.Vector
	Attrs     []string
	AggInfos  []aggInfo
	Recursive int32
	// contains filtered or unexported fields
}
    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.