Documentation ¶
Index ¶
- func AppendBytes(vec *movec.Vector, v any)
- func AppendFixedValue[T types.FixedSizeT](vec *movec.Vector, v any)
- func AppendValue(vec *movec.Vector, v any)
- func ApplyUpdateToVector(vec *movec.Vector, mask *roaring.Bitmap, vals map[uint32]any) *movec.Vector
- func ApplyUpdates(vec Vector, mask *roaring.Bitmap, vals map[uint32]any)
- func BatchWindow(bat *batch.Batch, start, end int) *batch.Batch
- func CopyToMoBatch(bat *Batch) *batch.Batch
- func CopyToMoVec(vec Vector) (mov *movec.Vector)
- func CopyToMoVecs(vecs []Vector) []*movec.Vector
- func CopyToProtoBatch(bat *Batch) (*api.Batch, error)
- func CopyToProtoVector(vec Vector) (*api.Vector, error)
- func ForEachValue(col *movec.Vector, reversed bool, op func(v any, row uint32) error) (err error)
- func GenericUpdateBytes(vec *movec.Vector, row uint32, v any)
- func GenericUpdateFixedValue[T types.FixedSizeT](vec *movec.Vector, row uint32, v any)
- func GetValue(col *movec.Vector, row uint32) any
- func GetValueFrom[T types.FixedSizeT](tool *CodecTool, i int) (v T)
- func MockCompressedFile(buf []byte, osize int, algo int) common.IVFile
- func MockVec(typ types.Type, rows int, offset int) *movec.Vector
- func NewVector[T any](typ types.Type, nullable bool, opts ...*Options) *vector[T]
- func SplitBatch(bat *batch.Batch, cnt int) []*batch.Batch
- func UnmarshalToMoVec(vec Vector) (mov *movec.Vector)
- func UnmarshalToMoVecs(vecs []Vector) []*movec.Vector
- func UpdateValue(col *movec.Vector, row uint32, val any)
- type Batch
- func BuildBatch(attrs []string, colTypes []types.Type, nullables []bool, opts *Options) *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 ...*mpool.MPool) (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) Extend(src *Batch)
- 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) PPString(num int) string
- 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 MockDataProvider
- type Options
- type Vector
- func CloneWithBuffer(src Vector, buffer *bytes.Buffer, allocator ...*mpool.MPool) (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
- func MockVector3(typ types.Type, rows int) Vector
- func NewVectorWithSharedMemory(v *movec.Vector, nullable bool) Vector
- type VectorView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendBytes ¶ added in v0.6.0
func AppendFixedValue ¶ added in v0.6.0
func AppendFixedValue[T types.FixedSizeT](vec *movec.Vector, v any)
func AppendValue ¶ added in v0.6.0
func ApplyUpdateToVector ¶ added in v0.6.0
func CopyToMoBatch ¶ added in v0.6.0
func CopyToMoVec ¶ added in v0.6.0
func ForEachValue ¶ added in v0.6.0
func GenericUpdateBytes ¶ added in v0.6.0
func GenericUpdateFixedValue ¶ added in v0.6.0
func GetValueFrom ¶
func GetValueFrom[T types.FixedSizeT](tool *CodecTool, i int) (v T)
func UnmarshalToMoVec ¶ added in v0.6.0
func UnmarshalToMoVecs ¶ added in v0.6.0
No copy
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 (*Batch) GetVectorByName ¶
func (*Batch) RangeDelete ¶
type CodecTool ¶
type CodecTool struct {
// contains filtered or unexported fields
}
func NewCodecTool ¶
func NewCodecTool() *CodecTool
func (*CodecTool) ReadFromFile ¶
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 ...*mpool.MPool) 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 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 Length() int Capacity() int Allocated() int GetAllocator() *mpool.MPool GetType() types.Type String() string PPString(num int) 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.