Documentation
¶
Index ¶
- func Clean(bat *Batch, m *mheap.Mheap)
- func Cow(bat *Batch)
- func GetVector(bat *Batch, name string) *vector.Vector
- func GetVectorIndex(bat *Batch, name string) int
- func Length(bat *Batch) int
- func Prefetch(bat *Batch, attrs []string, vecs []*vector.Vector)
- func Reduce(bat *Batch, attrs []string, m *mheap.Mheap)
- func Reorder(bat *Batch, attrs []string)
- func SetLength(bat *Batch, n int)
- func Shrink(bat *Batch, sels []int64)
- func Shuffle(bat *Batch, m *mheap.Mheap) error
- type Batch
- func (bat *Batch) Append(mh *mheap.Mheap, b *Batch) (*Batch, error)
- func (bat *Batch) Clean(m *mheap.Mheap)
- func (bat *Batch) ExpandNulls()
- func (bat *Batch) GetVector(pos int32) *vector.Vector
- func (bat *Batch) InitZsOne(len int)
- func (bat *Batch) Length() int
- func (bat *Batch) Prefetch(poses []int32, vecs []*vector.Vector)
- func (bat *Batch) Shrink(sels []int64)
- func (bat *Batch) Shuffle(sels []int64, m *mheap.Mheap) error
- func (bat *Batch) String() string
- type DecodeItem
- type DumpDecodeItem
- type DumpKey
- type DumpOption
- type DumpResult
- type DumpValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVectorIndex ¶
Types ¶
type Batch ¶
type Batch struct {
// Ro if true, Attrs is read only
Ro bool
// reference count, default is 1
Cnt int64
// SelsData encoded row number list
SelsData []byte
// Sels row number list
Sels []int64
// Attrs column name list
Attrs []string
// Vecs col data
Vecs []*vector.Vector
// ring
Zs []int64
As []string // alias list
Refs []uint64 // reference count
Rs []ring.Ring
Ht interface{} // hash table
Result *DumpResult
}
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()
type DecodeItem ¶
type DecodeItem struct {
// Attrs column name list
Attrs []string
// column data, origin Data
Vecs []DumpDecodeItem
}
type DumpDecodeItem ¶
type DumpDecodeItem []interface{}
type DumpOption ¶
type DumpResult ¶
type DumpResult struct {
Keys []DumpKey
Values []DumpValue
Decode_keys DecodeItem
Decode_values DecodeItem
}
Click to show internal directories.
Click to hide internal directories.