Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2024 Changes in this version + const InitialCapacity + type Chunk struct + func NewChunk(fields []*types.FieldType) *Chunk + func NewChunkWithCapacity(fields []*types.FieldType, cap int) *Chunk + func (c *Chunk) Append(other *Chunk, begin, end int) + func (c *Chunk) AppendBytes(colIdx int, b []byte) + func (c *Chunk) AppendDatum(colIdx int, d *types.Datum) + func (c *Chunk) AppendDuration(colIdx int, dur types.Duration) + func (c *Chunk) AppendEnum(colIdx int, enum types.Enum) + func (c *Chunk) AppendFloat32(colIdx int, f float32) + func (c *Chunk) AppendFloat64(colIdx int, f float64) + func (c *Chunk) AppendInt64(colIdx int, i int64) + func (c *Chunk) AppendJSON(colIdx int, j json.BinaryJSON) + func (c *Chunk) AppendMyDecimal(colIdx int, dec *types.MyDecimal) + func (c *Chunk) AppendNull(colIdx int) + func (c *Chunk) AppendPartialRow(colIdx int, row Row) + func (c *Chunk) AppendRow(row Row) + func (c *Chunk) AppendSet(colIdx int, set types.Set) + func (c *Chunk) AppendString(colIdx int, str string) + func (c *Chunk) AppendTime(colIdx int, t types.Time) + func (c *Chunk) AppendUint64(colIdx int, u uint64) + func (c *Chunk) GetRow(idx int) Row + func (c *Chunk) LowerBound(colIdx int, ad *types.Datum) (index int, match bool) + func (c *Chunk) MakeRef(srcColIdx, dstColIdx int) + func (c *Chunk) MemoryUsage() (sum int64) + func (c *Chunk) NumCols() int + func (c *Chunk) NumRows() int + func (c *Chunk) Reset() + func (c *Chunk) SetNumVirtualRows(numVirtualRows int) + func (c *Chunk) SwapColumn(colIdx int, other *Chunk, otherIdx int) + func (c *Chunk) SwapColumns(other *Chunk) + func (c *Chunk) TruncateTo(numRows int) + type CompareFunc = func(l Row, lCol int, r Row, rCol int) int + func GetCompareFunc(tp *types.FieldType) CompareFunc + type Iterator interface + Begin func() Row + Current func() Row + End func() Row + Len func() int + Next func() Row + ReachEnd func() + func NewIterator4List(li *List) Iterator + func NewIterator4RowPtr(li *List, ptrs []RowPtr) Iterator + func NewIterator4Slice(rows []Row) Iterator + type Iterator4Chunk struct + func NewIterator4Chunk(chk *Chunk) *Iterator4Chunk + func (it *Iterator4Chunk) Begin() Row + func (it *Iterator4Chunk) Current() Row + func (it *Iterator4Chunk) End() Row + func (it *Iterator4Chunk) Len() int + func (it *Iterator4Chunk) Next() Row + func (it *Iterator4Chunk) ReachEnd() + type List struct + func NewList(fieldTypes []*types.FieldType, maxChunkSize int) *List + func (l *List) Add(chk *Chunk) + func (l *List) AppendRow(row Row) RowPtr + func (l *List) GetChunk(chkIdx int) *Chunk + func (l *List) GetMemTracker() *memory.Tracker + func (l *List) GetRow(ptr RowPtr) Row + func (l *List) Len() int + func (l *List) NumChunks() int + func (l *List) Reset() + func (l *List) Walk(walkFunc ListWalkFunc) error + type ListWalkFunc = func(row Row) error + type MutRow Row + func MutRowFromDatums(datums []types.Datum) MutRow + func MutRowFromTypes(types []*types.FieldType) MutRow + func MutRowFromValues(vals ...interface{}) MutRow + func (mr MutRow) Len() int + func (mr MutRow) SetDatum(colIdx int, d types.Datum) + func (mr MutRow) SetDatums(datums ...types.Datum) + func (mr MutRow) SetRow(row Row) + func (mr MutRow) SetValue(colIdx int, val interface{}) + func (mr MutRow) SetValues(vals ...interface{}) + func (mr MutRow) ToRow() Row + type Row struct + func (r Row) GetBytes(colIdx int) []byte + func (r Row) GetDatum(colIdx int, tp *types.FieldType) types.Datum + func (r Row) GetDatumRow(fields []*types.FieldType) types.DatumRow + func (r Row) GetDuration(colIdx int) types.Duration + func (r Row) GetEnum(colIdx int) types.Enum + func (r Row) GetFloat32(colIdx int) float32 + func (r Row) GetFloat64(colIdx int) float64 + func (r Row) GetInt64(colIdx int) int64 + func (r Row) GetJSON(colIdx int) json.BinaryJSON + func (r Row) GetMyDecimal(colIdx int) *types.MyDecimal + func (r Row) GetSet(colIdx int) types.Set + func (r Row) GetString(colIdx int) string + func (r Row) GetTime(colIdx int) types.Time + func (r Row) GetUint64(colIdx int) uint64 + func (r Row) Idx() int + func (r Row) IsNull(colIdx int) bool + func (r Row) Len() int + type RowPtr struct + ChkIdx uint32 + RowIdx uint32