Documentation ¶
Index ¶
- Variables
- func ApplyUpdates(vec Vector, mask *roaring.Bitmap, vals map[uint32]any)
- func GetValueFrom[T any](tool *CodecTool, i int) (v T)
- func MockCompressedFile(buf []byte, osize int, algo int) common.IVFile
- func NewVector[T any](typ types.Type, nullable bool, opts ...*Options) *vector[T]
- func WriteValueInto[T any](tool *CodecTool, v T) (n int64, err error)
- type Batch
- func BuildBatch(attrs []string, colTypes []types.Type, nullables []bool, capacity int) *Batch
- func MockBatch(vecTypes []types.Type, rows int, uniqueIdx int, provider *MockDataProvider) (bat *Batch)
- func MockBatchWithAttrs(vecTypes []types.Type, attrs []string, nullables []bool, rows int, ...) (bat *Batch)
- func MockNullableBatch(vecTypes []types.Type, nullables []bool, rows int, uniqueIdx int, ...) (bat *Batch)
- func NewBatch() *Batch
- func NewEmptyBatch() *Batch
- func (bat *Batch) AddVector(attr string, vec Vector)
- func (bat *Batch) Allocated() int
- func (bat *Batch) Capacity() int
- func (bat *Batch) CloneWindow(offset, length int, allocator ...MemAllocator) (cloned *Batch)
- func (bat *Batch) Close()
- func (bat *Batch) Compact()
- func (bat *Batch) Delete(i int)
- func (bat *Batch) DeleteCnt() int
- func (bat *Batch) Equals(o *Batch) bool
- func (bat *Batch) GetVectorByName(name string) Vector
- func (bat *Batch) HasDelete() bool
- func (bat *Batch) IsDeleted(i int) bool
- func (bat *Batch) Length() int
- func (bat *Batch) RangeDelete(start, end int)
- func (bat *Batch) ReadFrom(r io.Reader) (n int64, err error)
- func (bat *Batch) Split(cnt int) []*Batch
- func (bat *Batch) String() string
- func (bat *Batch) Window(offset, length int) *Batch
- func (bat *Batch) WriteTo(w io.Writer) (n int64, err error)
- type Bytes
- type CodecTool
- func (tool *CodecTool) Allocated() int
- func (tool *CodecTool) Close()
- func (tool *CodecTool) Delete(i int)
- func (tool *CodecTool) Elements() int
- func (tool *CodecTool) Get(i int) []byte
- func (tool *CodecTool) ReadFrom(r io.Reader) (n int64, err error)
- func (tool *CodecTool) ReadFromFile(f common.IVFile, buffer *bytes.Buffer) (err error)
- func (tool *CodecTool) Reset()
- func (tool *CodecTool) Update(i int, buf []byte)
- func (tool *CodecTool) Write(buf []byte) (n int, err error)
- func (tool *CodecTool) WriteTo(w io.Writer) (n int64, err error)
- type ItOp
- type MemAllocator
- type MockDataProvider
- type Options
- type Vector
- func CloneWithBuffer(src Vector, buffer *bytes.Buffer, allocator ...MemAllocator) (cloned Vector)
- func MakeVector(typ types.Type, nullable bool, opts ...*Options) (vec Vector)
- func MockVector(t types.Type, rows int, unique, nullable bool, provider Vector) (vec Vector)
- func MockVector2(typ types.Type, rows int, offset int) Vector
- type VectorView
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAllocator = stl.DefaultAllocator
View Source
var NewBytes = stl.NewBytes
Functions ¶
func GetValueFrom ¶
Types ¶
type Batch ¶
type Batch struct { Attrs []string Vecs []Vector Deletes *roaring.Bitmap // contains filtered or unexported fields }
func BuildBatch ¶
func MockBatchWithAttrs ¶
func MockNullableBatch ¶
func NewEmptyBatch ¶
func NewEmptyBatch() *Batch
func (*Batch) CloneWindow ¶
func (bat *Batch) CloneWindow(offset, length int, allocator ...MemAllocator) (cloned *Batch)
func (*Batch) GetVectorByName ¶
func (*Batch) RangeDelete ¶
type CodecTool ¶
type CodecTool struct {
// contains filtered or unexported fields
}
func NewCodecTool ¶
func NewCodecTool() *CodecTool
func (*CodecTool) ReadFromFile ¶
type MemAllocator ¶
type MemAllocator = stl.MemAllocator
type MockDataProvider ¶
type MockDataProvider struct {
// contains filtered or unexported fields
}
func NewMockDataProvider ¶
func NewMockDataProvider() *MockDataProvider
func (*MockDataProvider) AddColumnProvider ¶
func (p *MockDataProvider) AddColumnProvider(colIdx int, provider Vector)
func (*MockDataProvider) GetColumnProvider ¶
func (p *MockDataProvider) GetColumnProvider(colIdx int) Vector
func (*MockDataProvider) Reset ¶
func (p *MockDataProvider) Reset()
type Options ¶
type Options = containers.Options
type Vector ¶
type Vector interface { VectorView Reset() ResetWithData(bs *Bytes, nulls *roaring64.Bitmap) GetView() VectorView Update(i int, v any) Delete(i int) DeleteBatch(*roaring.Bitmap) Append(v any) AppendMany(vs ...any) AppendNoNulls(s any) Extend(o Vector) ExtendWithOffset(src Vector, srcOff, srcLen int) Compact(deletes *roaring.Bitmap) CloneWindow(offset, length int, allocator ...MemAllocator) Vector Equals(o Vector) bool Window(offset, length int) Vector WriteTo(w io.Writer) (int64, error) ReadFrom(r io.Reader) (int64, error) ReadFromFile(common.IVFile, *bytes.Buffer) error Close() }
func CloneWithBuffer ¶
func CloneWithBuffer(src Vector, buffer *bytes.Buffer, allocator ...MemAllocator) (cloned Vector)
func MockVector ¶
type VectorView ¶
type VectorView interface { IsView() bool Nullable() bool IsNull(i int) bool HasNull() bool NullMask() *roaring64.Bitmap Data() []byte Bytes() *Bytes Slice() any DataWindow(offset, length int) []byte Get(i int) any GetCopy(i int) any Length() int Capacity() int Allocated() int GetAllocator() stl.MemAllocator GetType() types.Type String() string Foreach(op ItOp, sels *roaring.Bitmap) error ForeachWindow(offset, length int, op ItOp, sels *roaring.Bitmap) error WriteTo(w io.Writer) (int64, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.