vector

package
v0.0.0-...-df06595 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLAT     = iota // flat vector represent a uncompressed vector
	CONSTANT        // const vector
)

Variables

This section is empty.

Functions

func Append

func Append[T any](v *Vector, w T, isNull bool) error

func AppendList

func AppendList[T any](v *Vector, ws []T, nsp *bitmap.Bitmap) error

func AppendString

func AppendString(v *Vector, w []byte, isNull bool) error

func AppendStringList

func AppendStringList(v *Vector, ws [][]byte, nsp *bitmap.Bitmap) error

func AppendStringUUID

func AppendStringUUID(v *Vector, uuid uuid.UUID, isNull bool, size uint64) error

func GetColumnValue

func GetColumnValue[T any](v *Vector) []T

func GetShrinkFunction

func GetShrinkFunction(typ types.Type) func(*Vector, []uint32) error

Types

type Vector

type Vector struct {
	// contains filtered or unexported fields
}

Vector represent a column

func New

func New(class int, typ *types.Type, fs vfs.FS) (*Vector, error)

func (*Vector) Dup

func (vec *Vector) Dup() *Vector

func (*Vector) GetReader

func (vec *Vector) GetReader(str types.String) (io.ReadCloser, error)

func (*Vector) GetString

func (v *Vector) GetString(str types.String) ([]byte, uuid.UUID, uint64)

func (*Vector) GetStringValue

func (v *Vector) GetStringValue(str types.String) ([]byte, error)

func (*Vector) GetType

func (v *Vector) GetType() types.Type

func (*Vector) GetUnionFunction

func (v *Vector) GetUnionFunction() func(*Vector, []uint32) error

func (*Vector) GetValueString

func (v *Vector) GetValueString(row int) string

func (*Vector) IsConst

func (v *Vector) IsConst() bool

func (*Vector) IsNull

func (v *Vector) IsNull(i int) bool

func (*Vector) Length

func (v *Vector) Length() int

func (*Vector) MarshalBinary

func (v *Vector) MarshalBinary() ([]byte, error)

func (*Vector) PreExtend

func (vec *Vector) PreExtend(rows int) error

PreExtend use to expand the capacity of the vector

func (*Vector) Reset

func (v *Vector) Reset()

func (*Vector) SetLength

func (v *Vector) SetLength(n int)

func (*Vector) SetNotNull

func (v *Vector) SetNotNull(i int)

func (*Vector) SetNull

func (v *Vector) SetNull(i int)

func (*Vector) SetStringValue

func (v *Vector) SetStringValue(str types.String, b []byte) error

func (*Vector) String

func (v *Vector) String() string

func (*Vector) TypeEqual

func (v *Vector) TypeEqual(w *Vector) bool

func (*Vector) UnmarshalBinary

func (v *Vector) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL