Documentation
¶
Index ¶
- Constants
- Variables
- func CombineHashScalar(a, b uint64) uint64
- func CombineHashTypeSwitch(hashes *Vector, input *Vector, rsel *SelectVector, count int, hasRsel bool)
- func Copy(srcP *Vector, dstP *Vector, selP *SelectVector, srcCount int, srcOffset int, ...)
- func CopyBitmap(v *Vector) *util.Bitmap
- func FlattenConstVector[T any](data []byte, srcData []byte, pSize int, cnt int)
- func GenerateSequence(result *Vector, count uint64, start, increment uint64)
- func GetDataInPhyFormatConst(vec *Vector) []byte
- func GetDataInPhyFormatFlat(vec *Vector) []byte
- func GetMaskInPhyFormatConst(vec *Vector) *util.Bitmap
- func GetMaskInPhyFormatFlat(vec *Vector) *util.Bitmap
- func GetSequenceInPhyFormatSequence(vec *Vector, start, incr, seqCount *int64)
- func GetSequenceInPhyFormatSequence2(vec *Vector, start, incr *int64)
- func GetSliceInPhyFormatConst[T any](vec *Vector) []T
- func GetSliceInPhyFormatFlat[T any](vec *Vector) []T
- func GetSliceInPhyFormatSequence(vec *Vector) []int64
- func GetSliceInPhyFormatUnifiedFormat[T any](uni *UnifiedFormat) []T
- func HasNull(input *Vector, count int) bool
- func HashTypeSwitch(input, result *Vector, rsel *SelectVector, count int, hasRsel bool)
- func IsNullInPhyFormatConst(vec *Vector) bool
- func ReadFromStorage(ptr unsafe.Pointer, count int, res *Vector)
- func ReadLoop[T any](src unsafe.Pointer, count int, res *Vector)
- func ReferenceInPhyFormatConst(vec *Vector, src *Vector, pos int, count int)
- func SaveLoop[T any](vdata *UnifiedFormat, count int, ptr unsafe.Pointer, nVal ScatterOp[T])
- func SetData(vec *Vector, slice []byte)
- func SetMaskInPhyFormatFlat(vec *Vector, mask *util.Bitmap)
- func SetNullInPhyFormatConst(vec *Vector, null bool)
- func SetNullInPhyFormatFlat(vec *Vector, idx uint64, null bool)
- func TemplatedCopy[T any](src *Vector, sel *SelectVector, dst *Vector, srcOffset int, dstOffset int, ...)
- func TemplatedLoopCombineHash[T any](input *Vector, hashes *Vector, rsel *SelectVector, count int, hasRsel bool, ...)
- func TemplatedLoopHash[T any](input, result *Vector, rsel *SelectVector, count int, hasRsel bool, ...)
- func TightLoopCombineHash[T any](ldata []T, hashData []uint64, rsel *SelectVector, count int, ...)
- func TightLoopCombineHashConstant[T any](ldata []T, constHash uint64, hashData []uint64, rsel *SelectVector, count int, ...)
- func TightLoopHash[T any](ldata []T, resultData []uint64, rsel *SelectVector, count int, ...)
- func WriteToStorage(src *Vector, count int, ptr unsafe.Pointer)
- type BoolScatterOp
- type Chunk
- func (c *Chunk) Cap() int
- func (c *Chunk) Card() int
- func (c *Chunk) ColumnCount() int
- func (c *Chunk) Deserialize(deserial util.Deserialize) error
- func (c *Chunk) Flatten()
- func (c *Chunk) Hash(result *Vector)
- func (c *Chunk) Init(types []common.LType, cap int)
- func (c *Chunk) Print()
- func (c *Chunk) Print2(rwoPrefix string)
- func (c *Chunk) Reference(other *Chunk)
- func (c *Chunk) ReferenceIndice(other *Chunk, indice []int)
- func (c *Chunk) Reset()
- func (c *Chunk) SaveToFile(resFile *os.File) (err error)
- func (c *Chunk) SaveToWriter(writer wire.DataWriter) (err error)
- func (c *Chunk) Serialize(serial util.Serialize) error
- func (c *Chunk) SetCap(cap int)
- func (c *Chunk) SetCard(count int)
- func (c *Chunk) Slice(other *Chunk, sel *SelectVector, count int, colOffset int)
- func (c *Chunk) SliceIndice(other *Chunk, sel *SelectVector, count int, colOffset int, indice []int)
- func (c *Chunk) SliceItself(sel *SelectVector, cnt int)
- func (c *Chunk) ToUnifiedFormat() []*UnifiedFormat
- type DateScatterOp
- type DecimalScatterOp
- type Float64ScatterOp
- type HashFunc
- type HashFuncDate
- type HashFuncDecimal
- type HashFuncHugeint
- type HashFuncInt8
- type HashFuncInt32
- type HashFuncInt64
- type HashFuncString
- type HashOp
- type HashOpDate
- type HashOpDecimal
- type HashOpHugeint
- type HashOpInt8
- type HashOpInt32
- type HashOpInt64
- type HashOpString
- type HugeintScatterOp
- type Int8ScatterOp
- type Int32ScatterOp
- type Int64ScatterOp
- type PhyFormat
- type ScatterOp
- type SelectVector
- func GetSelVectorInPhyFormatDict(vec *Vector) *SelectVector
- func IncrSelectVectorInPhyFormatFlat() *SelectVector
- func NewSelectVector(count int) *SelectVector
- func NewSelectVector2(start, count int) *SelectVector
- func NewSelectVector3(tuples []int) *SelectVector
- func ZeroSelectVectorInPhyFormatConst(cnt int, sel *SelectVector) *SelectVector
- func (svec *SelectVector) GetIndex(idx int) int
- func (svec *SelectVector) Init(cnt int)
- func (svec *SelectVector) Init2(sel *SelectVector)
- func (svec *SelectVector) Init3(data []int)
- func (svec *SelectVector) Invalid() bool
- func (svec *SelectVector) SetIndex(idx int, index int)
- func (svec *SelectVector) Slice(sel *SelectVector, count int) []int
- type StringScatterOp
- type Uint64ScatterOp
- type UnifiedFormat
- type Value
- type VecBuffer
- type VecBufferType
- type Vector
- func GetChildInPhyFormatDict(vec *Vector) *Vector
- func NewConstVector(lTyp common.LType) *Vector
- func NewEmptyVector(typ common.LType, pf PhyFormat, cap int) *Vector
- func NewFlatVector(lTyp common.LType, cap int) *Vector
- func NewUbigintFlatVector(v []uint64, sz int) *Vector
- func NewVarcharFlatVector(v []string, sz int) *Vector
- func NewVector(lTyp common.LType, initData bool, cap int) *Vector
- func NewVector2(lTyp common.LType, cap int) *Vector
- func (vec *Vector) Deserialize(count int, deserial util.Deserialize) error
- func (vec *Vector) Flatten(cnt int)
- func (vec *Vector) Flatten2(sel *SelectVector, cnt int)
- func (vec *Vector) GetValue(idx int) *Value
- func (vec *Vector) Init(cap int)
- func (vec *Vector) PhyFormat() PhyFormat
- func (vec *Vector) Print(rowCount int)
- func (vec *Vector) Print2(prefix string, rowCount int)
- func (vec *Vector) Reference(other *Vector)
- func (vec *Vector) ReferenceValue(val *Value)
- func (vec *Vector) Reinterpret(other *Vector)
- func (vec *Vector) Reset()
- func (vec *Vector) Sequence(start uint64, incr uint64, count uint64)
- func (vec *Vector) Serialize(count int, serial util.Serialize) error
- func (vec *Vector) SetPhyFormat(pf PhyFormat)
- func (vec *Vector) SetValue(idx int, val *Value)
- func (vec *Vector) Slice(other *Vector, sel *SelectVector, count int)
- func (vec *Vector) Slice2(sel *SelectVector, count int)
- func (vec *Vector) Slice3(other *Vector, offset uint64, end uint64)
- func (vec *Vector) SliceOnSelf(sel *SelectVector, count int)
- func (vec *Vector) ToUnifiedFormat(count int, output *UnifiedFormat)
- func (vec *Vector) Typ() common.LType
Constants ¶
View Source
const (
NULL_HASH = 0xbf58476d1ce4e5b9
)
Variables ¶
View Source
var (
POWERS_OF_TEN = []int64{
1,
10,
100,
1000,
10000,
100000,
1000000,
10000000,
100000000,
1000000000,
10000000000,
100000000000,
1000000000000,
10000000000000,
100000000000000,
1000000000000000,
10000000000000000,
100000000000000000,
1000000000000000000,
}
)
Functions ¶
func CombineHashScalar ¶
func CombineHashTypeSwitch ¶
func CombineHashTypeSwitch( hashes *Vector, input *Vector, rsel *SelectVector, count int, hasRsel bool, )
func CopyBitmap ¶
func FlattenConstVector ¶
Helper functions for format conversion
func GenerateSequence ¶
func GetMaskInPhyFormatConst ¶
func GetMaskInPhyFormatFlat ¶
func GetSliceInPhyFormatFlat ¶
func GetSliceInPhyFormatSequence ¶
sequence vector
func GetSliceInPhyFormatUnifiedFormat ¶
func GetSliceInPhyFormatUnifiedFormat[T any](uni *UnifiedFormat) []T
func HashTypeSwitch ¶
func HashTypeSwitch( input, result *Vector, rsel *SelectVector, count int, hasRsel bool, )
func IsNullInPhyFormatConst ¶
func SetMaskInPhyFormatFlat ¶
func SetNullInPhyFormatConst ¶
func SetNullInPhyFormatFlat ¶
func TemplatedCopy ¶
func TemplatedLoopHash ¶
func TightLoopCombineHash ¶
func TightLoopCombineHash[T any]( ldata []T, hashData []uint64, rsel *SelectVector, count int, selVec *SelectVector, mask *util.Bitmap, hasRsel bool, hashOp HashOp[T], hashFun HashFunc[T], )
func TightLoopHash ¶
func TightLoopHash[T any]( ldata []T, resultData []uint64, rsel *SelectVector, count int, selVec *SelectVector, mask *util.Bitmap, hasRsel bool, hashOp HashOp[T], hashFun HashFunc[T], )
Types ¶
type BoolScatterOp ¶
type BoolScatterOp struct {
}
func (BoolScatterOp) NullValue ¶
func (scatter BoolScatterOp) NullValue() bool
func (BoolScatterOp) RandValue ¶
func (scatter BoolScatterOp) RandValue() bool
type Chunk ¶
func (*Chunk) ColumnCount ¶
func (*Chunk) Deserialize ¶
func (c *Chunk) Deserialize(deserial util.Deserialize) error
func (*Chunk) ReferenceIndice ¶
func (*Chunk) SaveToWriter ¶
func (c *Chunk) SaveToWriter(writer wire.DataWriter) (err error)
func (*Chunk) Slice ¶
func (c *Chunk) Slice(other *Chunk, sel *SelectVector, count int, colOffset int)
func (*Chunk) SliceIndice ¶
func (*Chunk) SliceItself ¶
func (c *Chunk) SliceItself(sel *SelectVector, cnt int)
func (*Chunk) ToUnifiedFormat ¶
func (c *Chunk) ToUnifiedFormat() []*UnifiedFormat
type DateScatterOp ¶
type DateScatterOp struct {
}
func (DateScatterOp) NullValue ¶
func (scatter DateScatterOp) NullValue() common.Date
func (DateScatterOp) RandValue ¶
func (scatter DateScatterOp) RandValue() common.Date
type DecimalScatterOp ¶
type DecimalScatterOp struct {
}
func (DecimalScatterOp) NullValue ¶
func (scatter DecimalScatterOp) NullValue() common.Decimal
func (DecimalScatterOp) RandValue ¶
func (scatter DecimalScatterOp) RandValue() common.Decimal
type Float64ScatterOp ¶
type Float64ScatterOp struct {
}
func (Float64ScatterOp) NullValue ¶
func (scatter Float64ScatterOp) NullValue() float64
func (Float64ScatterOp) RandValue ¶
func (scatter Float64ScatterOp) RandValue() float64
type HashFuncDate ¶
type HashFuncDate struct {
}
type HashFuncDecimal ¶
type HashFuncDecimal struct {
}
type HashFuncHugeint ¶
type HashFuncHugeint struct {
}
type HashFuncInt8 ¶
type HashFuncInt8 struct {
}
type HashFuncInt32 ¶
type HashFuncInt32 struct {
}
type HashFuncInt64 ¶
type HashFuncInt64 struct {
}
type HashFuncString ¶
type HashFuncString struct {
}
type HashOpDate ¶
type HashOpDate struct {
}
type HashOpDecimal ¶
type HashOpDecimal struct {
}
type HashOpHugeint ¶
type HashOpHugeint struct{}
type HashOpInt8 ¶
type HashOpInt8 struct {
}
type HashOpInt32 ¶
type HashOpInt32 struct {
}
type HashOpInt64 ¶
type HashOpInt64 struct {
}
type HashOpString ¶
type HashOpString struct {
}
type HugeintScatterOp ¶
type HugeintScatterOp struct {
}
func (HugeintScatterOp) NullValue ¶
func (scatter HugeintScatterOp) NullValue() common.Hugeint
func (HugeintScatterOp) RandValue ¶
func (scatter HugeintScatterOp) RandValue() common.Hugeint
type Int8ScatterOp ¶
type Int8ScatterOp struct {
}
func (Int8ScatterOp) NullValue ¶
func (scatter Int8ScatterOp) NullValue() int8
func (Int8ScatterOp) RandValue ¶
func (scatter Int8ScatterOp) RandValue() int8
type Int32ScatterOp ¶
type Int32ScatterOp struct {
}
func (Int32ScatterOp) NullValue ¶
func (scatter Int32ScatterOp) NullValue() int32
func (Int32ScatterOp) RandValue ¶
func (scatter Int32ScatterOp) RandValue() int32
type Int64ScatterOp ¶
type Int64ScatterOp struct {
}
func (Int64ScatterOp) NullValue ¶
func (scatter Int64ScatterOp) NullValue() int64
func (Int64ScatterOp) RandValue ¶
func (scatter Int64ScatterOp) RandValue() int64
type SelectVector ¶
type SelectVector struct {
SelVec []int
}
func GetSelVectorInPhyFormatDict ¶
func GetSelVectorInPhyFormatDict(vec *Vector) *SelectVector
dictionary vector
func IncrSelectVectorInPhyFormatFlat ¶
func IncrSelectVectorInPhyFormatFlat() *SelectVector
func NewSelectVector ¶
func NewSelectVector(count int) *SelectVector
func NewSelectVector2 ¶
func NewSelectVector2(start, count int) *SelectVector
func NewSelectVector3 ¶
func NewSelectVector3(tuples []int) *SelectVector
func ZeroSelectVectorInPhyFormatConst ¶
func ZeroSelectVectorInPhyFormatConst(cnt int, sel *SelectVector) *SelectVector
func (*SelectVector) GetIndex ¶
func (svec *SelectVector) GetIndex(idx int) int
func (*SelectVector) Init ¶
func (svec *SelectVector) Init(cnt int)
func (*SelectVector) Init2 ¶
func (svec *SelectVector) Init2(sel *SelectVector)
func (*SelectVector) Init3 ¶
func (svec *SelectVector) Init3(data []int)
func (*SelectVector) Invalid ¶
func (svec *SelectVector) Invalid() bool
func (*SelectVector) SetIndex ¶
func (svec *SelectVector) SetIndex(idx int, index int)
func (*SelectVector) Slice ¶
func (svec *SelectVector) Slice(sel *SelectVector, count int) []int
type StringScatterOp ¶
type StringScatterOp struct {
}
func (StringScatterOp) NullValue ¶
func (scatter StringScatterOp) NullValue() common.String
func (StringScatterOp) RandValue ¶
func (scatter StringScatterOp) RandValue() common.String
type Uint64ScatterOp ¶
type Uint64ScatterOp struct {
}
func (Uint64ScatterOp) NullValue ¶
func (scatter Uint64ScatterOp) NullValue() uint64
func (Uint64ScatterOp) RandValue ¶
func (scatter Uint64ScatterOp) RandValue() uint64
type UnifiedFormat ¶
type UnifiedFormat struct {
Sel *SelectVector
Data []byte
Mask *util.Bitmap
InterSel SelectVector
PTypSize int
}
type Value ¶
type VecBuffer ¶
type VecBuffer struct {
BufTyp VecBufferType
Data []byte
Sel *SelectVector
Child *Vector
}
func NewChildBuffer ¶
func NewConstBuffer ¶
func NewDictBuffer ¶
func NewDictBuffer2 ¶
func NewDictBuffer2(sel *SelectVector) *VecBuffer
func (*VecBuffer) GetSelVector ¶
func (buf *VecBuffer) GetSelVector() *SelectVector
type VecBufferType ¶
type VecBufferType int
const ( //array of data VBT_STANDARD VecBufferType = iota VBT_DICT VBT_CHILD VBT_STRING )
type Vector ¶
type Vector struct {
Data []byte
Mask *util.Bitmap
Buf *VecBuffer
Aux *VecBuffer
// contains filtered or unexported fields
}
func GetChildInPhyFormatDict ¶
func NewConstVector ¶
func NewUbigintFlatVector ¶
func NewVarcharFlatVector ¶
func (*Vector) Deserialize ¶
func (vec *Vector) Deserialize(count int, deserial util.Deserialize) error
func (*Vector) Flatten2 ¶
func (vec *Vector) Flatten2(sel *SelectVector, cnt int)
func (*Vector) ReferenceValue ¶
func (*Vector) Reinterpret ¶
func (*Vector) SetPhyFormat ¶
func (*Vector) Slice2 ¶
func (vec *Vector) Slice2(sel *SelectVector, count int)
func (*Vector) SliceOnSelf ¶
func (vec *Vector) SliceOnSelf(sel *SelectVector, count int)
func (*Vector) ToUnifiedFormat ¶
func (vec *Vector) ToUnifiedFormat(count int, output *UnifiedFormat)
Click to show internal directories.
Click to hide internal directories.