Documentation
¶
Overview ¶
nolint
nolint
nolint
Index ¶
- Constants
- Variables
- func AppendFieldToCol(col *ColVal, field *influx.Field, size *int64) error
- func AppendFieldsToRecord(rec *Record, fields []influx.Field, time int64, sameSchema bool) (int64, error)
- func AppendFieldsToRecordSlow(rec *Record, fields []influx.Field, time int64) (int64, error)
- func AppendSeqIdSchema(rec *Record) error
- func ArrowBoolColToNativeBoolCol(buffer *memory.Buffer, colVal *ColVal)
- func ArrowColToNativeColWithNull(colArr arrow.Array, colVal *ColVal, colType int) error
- func ArrowColToNativeColWithoutNull(buffer []*memory.Buffer, colVal *ColVal, colType int) error
- func ArrowRecordToNativeRecord(rec arrow.Record, r *Record) error
- func ArrowTypeToNativeType(dataType arrow.DataType) int
- func CheckCol(col *ColVal, typ int)
- func CheckRecord(rec *Record)
- func CheckSchema(i int, rec *Record, isOrderSchema bool) bool
- func CheckTimes(times []int64)
- func FastSortRecord(rec *Record, offset int)
- func FillZeroUint32(dst []uint32, size int) []uint32
- func GetTimeRangeEndIndex(times []int64, startPos int, endTime int64) int
- func GetTimeRangeEndIndexDescend(times []int64, startPos int, endTime int64) int
- func GetTimeRangeStartIndex(times []int64, startPos int, startTime int64) int
- func GetTimeRangeStartIndexDescend(times []int64, startPos int, startTime int64) int
- func ReserveInt64Slice(b []int64, size int) []int64
- func ReverseBitMap(bitmap []byte, bitmapOffset uint32, count int) []byte
- func ToInfluxqlTypes(ty int) influxql.DataType
- func ToModelTypes(ty influxql.DataType) int
- func ToPrimitiveType(ty int32) int
- func Uint64ToBytesUnsafe(id uint64) []byte
- func UpdateBooleanColumnFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanColumnMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateBooleanMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateCount(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateCountFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatColumnMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatCountOriginProm(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatCountProm(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatSum(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateFloatSumFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerColumnMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerFirstFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerLastFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerMax(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerMaxFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerMin(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerMinFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerSum(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateIntegerSumFast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateMaxProm(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateMinProm(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateSeqIdCol(startSeqId int64, rec *Record)
- func UpdateStringColumnFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateStringColumnLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateStringFirst(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func UpdateStringLast(iRec, rec *Record, recColumn, iRecColumn, recRow, iRecRow int)
- func ValueIndexRange(bitMap []byte, bitOffset int, bmStart, bmEnd int, pos int, posValidCount int) (int, int)
- type BooleanSlice
- func (sli *BooleanSlice) Compare(i, j int) int
- func (sli *BooleanSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
- func (sli *BooleanSlice) PadBoolSlice(cv *ColVal)
- func (sli *BooleanSlice) PadBoolSliceWithLimit(cv *ColVal, compareLength int)
- func (sli *BooleanSlice) Swap(i, j int)
- type BulkRecords
- type CircularRecordPool
- type ColAux
- type ColMergePerformer
- func (p *ColMergePerformer) InitColVal(order, unordered *ColVal, typ int)
- func (p *ColMergePerformer) InitTimes(order, unordered []int64)
- func (p *ColMergePerformer) MergeOrder()
- func (p *ColMergePerformer) MergeSameTime()
- func (p *ColMergePerformer) MergeUnordered()
- func (p *ColMergePerformer) MergedResult() (*ColVal, []int64)
- func (p *ColMergePerformer) Times(order bool) *Times
- type ColMeta
- func (m *ColMeta) Clone() (ColMeta, error)
- func (m *ColMeta) Count() interface{}
- func (m *ColMeta) First() (interface{}, int64)
- func (m *ColMeta) Init()
- func (m *ColMeta) IsEmpty() bool
- func (m *ColMeta) Last() (interface{}, int64)
- func (m *ColMeta) Max() (interface{}, int64)
- func (m *ColMeta) Min() (interface{}, int64)
- func (m *ColMeta) SetCount(count interface{})
- func (m *ColMeta) SetFirst(first interface{}, firstTime int64)
- func (m *ColMeta) SetLast(last interface{}, lastTime int64)
- func (m *ColMeta) SetMax(max interface{}, maxTime int64)
- func (m *ColMeta) SetMin(min interface{}, minTime int64)
- func (m *ColMeta) SetSum(sum interface{})
- func (m *ColMeta) Sum() interface{}
- type ColVal
- func (cv *ColVal) Append(value []byte, offsets []uint32, bitMap []byte, bitOffset int, vLen int, ...)
- func (cv *ColVal) AppendAll(src *ColVal)
- func (cv *ColVal) AppendBitmap(bitmap []byte, bitOffset int, rows int, start, end int)
- func (cv *ColVal) AppendBoolean(v bool)
- func (cv *ColVal) AppendBooleanNull()
- func (cv *ColVal) AppendBooleanNullReserve()
- func (cv *ColVal) AppendBooleanNulls(count int)
- func (cv *ColVal) AppendBooleans(values ...bool)
- func (cv *ColVal) AppendByteSlice(v []byte)
- func (cv *ColVal) AppendColVal(srcCol *ColVal, colType, start, end int)
- func (cv *ColVal) AppendColValFast(srcCol *ColVal, colType, start, end int, pos int, posValidCount int)
- func (cv *ColVal) AppendFloat(v float64)
- func (cv *ColVal) AppendFloatNull()
- func (cv *ColVal) AppendFloatNullReserve()
- func (cv *ColVal) AppendFloatNulls(count int)
- func (cv *ColVal) AppendFloats(values ...float64)
- func (cv *ColVal) AppendInteger(v int64)
- func (cv *ColVal) AppendIntegerNull()
- func (cv *ColVal) AppendIntegerNullReserve()
- func (cv *ColVal) AppendIntegerNulls(count int)
- func (cv *ColVal) AppendIntegers(values ...int64)
- func (cv *ColVal) AppendString(v string)
- func (cv *ColVal) AppendStringNull()
- func (cv *ColVal) AppendStringNulls(count int)
- func (cv *ColVal) AppendStrings(values ...string)
- func (cv *ColVal) AppendTimes(times []int64)
- func (cv *ColVal) AppendWithNilCount(src *ColVal, colType, start, end int, nc *NilCount)
- func (cv *ColVal) BooleanValue(i int) (bool, bool)
- func (cv *ColVal) BooleanValueWithNullReserve(index int) (bool, bool)
- func (cv *ColVal) BooleanValues() []bool
- func (cv *ColVal) BytesUnsafe(i int) ([]byte, bool)
- func (cv *ColVal) FillBitmap(val uint8)
- func (cv *ColVal) FirstBooleanValue(values []bool, start, end int) (bool, int)
- func (cv *ColVal) FirstFloatValue(values []float64, start, end int) (float64, int)
- func (cv *ColVal) FirstIntegerValue(values []int64, start, end int) (int64, int)
- func (cv *ColVal) FirstStringValue(values []string, start, end int) (string, int)
- func (cv *ColVal) FloatValue(i int) (float64, bool)
- func (cv *ColVal) FloatValueWithNullReserve(index int) (float64, bool)
- func (cv *ColVal) FloatValues() []float64
- func (cv *ColVal) GetOffsAndLens() ([]int32, []int32)
- func (cv *ColVal) GetValIndexRange(bmStart, bmEnd int) (valStart, valEnd int)
- func (cv *ColVal) GetValLen() int
- func (cv *ColVal) Init()
- func (cv *ColVal) InitBitMap(len int)
- func (cv *ColVal) Int8Values() []int8
- func (cv *ColVal) IntegerValue(i int) (int64, bool)
- func (cv *ColVal) IntegerValueWithNullReserve(index int) (int64, bool)
- func (cv *ColVal) IntegerValues() []int64
- func (cv *ColVal) IsNil(i int) bool
- func (cv *ColVal) LastBooleanValue(values []bool, start, end int) (bool, int)
- func (cv *ColVal) LastFloatValue(values []float64, start, end int) (float64, int)
- func (cv *ColVal) LastIntegerValue(values []int64, start, end int) (int64, int)
- func (cv *ColVal) LastStringValue(values []string, start, end int) (string, int)
- func (cv *ColVal) Length() int
- func (cv *ColVal) Marshal(buf []byte) []byte
- func (cv *ColVal) MaxBooleanValue(values []bool, start, end int) (bool, int)
- func (cv *ColVal) MaxBooleanValues(values []bool, start, end int) (bool, []int)
- func (cv *ColVal) MaxFloatValue(values []float64, start, end int) (float64, int)
- func (cv *ColVal) MaxFloatValues(values []float64, start, end int) (float64, []int)
- func (cv *ColVal) MaxIntegerValue(values []int64, start, end int) (int64, int)
- func (cv *ColVal) MaxIntegerValues(values []int64, start, end int) (int64, []int)
- func (cv *ColVal) MinBooleanValue(values []bool, start, end int) (bool, int)
- func (cv *ColVal) MinBooleanValues(values []bool, start, end int) (bool, []int)
- func (cv *ColVal) MinFloatValue(values []float64, start, end int) (float64, int)
- func (cv *ColVal) MinFloatValues(values []float64, start, end int) (float64, []int)
- func (cv *ColVal) MinIntegerValue(values []int64, start, end int) (int64, int)
- func (cv *ColVal) MinIntegerValues(values []int64, start, end int) (int64, []int)
- func (cv *ColVal) NullN() int
- func (cv *ColVal) PadColVal(colType, padLen int)
- func (cv *ColVal) PadEmptyCol2AlignBitmap(colType, padLen, bitMapOffset, bitMapLen int)
- func (cv *ColVal) PadEmptyCol2FixBitmap(bitMapOffset, bitMapLen int)
- func (cv *ColVal) RemoveLastBoolean()
- func (cv *ColVal) RemoveLastFloat()
- func (cv *ColVal) RemoveLastInteger()
- func (cv *ColVal) RemoveLastString()
- func (cv *ColVal) RemoveNilOffset() []uint32
- func (cv *ColVal) RepairBitmap()
- func (cv *ColVal) ReserveBitmap(bytes int)
- func (cv *ColVal) RowBitmap(dst []bool) []bool
- func (cv *ColVal) Size() int
- func (cv *ColVal) Split(dst []ColVal, maxRows int, refType int) []ColVal
- func (cv *ColVal) SplitColBySize(dst []ColVal, rowsPerSegment []int, refType int) []ColVal
- func (cv *ColVal) StringValue(i int) ([]byte, bool)
- func (cv *ColVal) StringValueSafe(i int) (string, bool)
- func (cv *ColVal) StringValueUnsafe(i int) (string, bool)
- func (cv *ColVal) StringValues(dst []string) []string
- func (cv *ColVal) SubBitmapBytes() ([]byte, int)
- func (cv *ColVal) SubFloatValues(start, end int) []float64
- func (cv *ColVal) SubIntegerValues(start, end int) []int64
- func (cv *ColVal) Unmarshal(buf []byte)
- func (cv *ColVal) UnmarshalUnsafe(buf []byte)
- func (cv *ColVal) UpdateBooleanValue(v bool, isNil bool, row int)
- func (cv *ColVal) UpdateFloatValue(v float64, isNil bool, row int)
- func (cv *ColVal) UpdateIntegerValue(v int64, isNil bool, row int)
- func (cv *ColVal) UpdateStringIntoNull(row int)
- func (cv *ColVal) UpdateStringValue(v string, isNil bool, row int)
- func (cv *ColVal) ValidCount(start, end int) int
- func (cv *ColVal) ValidString() bool
- type ColumnSortHelper
- type Field
- type FloatSlice
- func (sli *FloatSlice) Compare(i, j int) int
- func (sli *FloatSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
- func (sli *FloatSlice) PadFloatSlice(cv *ColVal)
- func (sli *FloatSlice) PadFloatSliceWithLimit(cv *ColVal, compareLength int)
- func (sli *FloatSlice) Swap(i, j int)
- type IntegerSlice
- func (sli *IntegerSlice) Compare(i, j int) int
- func (sli *IntegerSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
- func (sli *IntegerSlice) PadIntSlice(cv *ColVal)
- func (sli *IntegerSlice) PadIntSliceWithLimit(cv *ColVal, compareLength int)
- func (sli *IntegerSlice) Swap(i, j int)
- type MemGroup
- func (g *MemGroup) Add(hash uint64, row *influx.Row) error
- func (g *MemGroup) Done(err error)
- func (g *MemGroup) Error() error
- func (g *MemGroup) Hash() uint64
- func (g *MemGroup) IsEmpty() bool
- func (g *MemGroup) MicroSince() int64
- func (g *MemGroup) Records() []*MemRecord
- func (g *MemGroup) Reset()
- func (g *MemGroup) ResetTime()
- func (g *MemGroup) SetShardID(id uint64)
- func (g *MemGroup) ShardID() uint64
- type MemGroups
- func (rs *MemGroups) Add(row *influx.Row) error
- func (rs *MemGroups) BeforeWrite()
- func (rs *MemGroups) Error() error
- func (rs *MemGroups) GroupNum() int
- func (rs *MemGroups) Init(size, seriesHashFactor int)
- func (rs *MemGroups) MemSize() int
- func (rs *MemGroups) Reset()
- func (rs *MemGroups) ResetTime()
- func (rs *MemGroups) RowGroup(i int) *MemGroup
- func (rs *MemGroups) Wait()
- type MemRecord
- type MergeColVal
- type MergeHelper
- type MergePerformer
- type NilCount
- type PrimaryKey
- type RecMeta
- type Record
- func (rec *Record) AddTagIndexAndKey(key *[]byte, i int)
- func (rec *Record) AppendIntervalEmptyRow(rowTime int64, initRecMeta bool, firstOrLastRecIdxs []int)
- func (rec *Record) AppendIntervalEmptyRows(start, step, num int64, initRecMeta bool, firstOrLastRecIdxs []int)
- func (rec *Record) AppendRec(srcRec *Record, start, end int)
- func (rec *Record) AppendRecFast(srcRec *Record, start, end int, colPos []int, colPosValidCount []int)
- func (rec *Record) AppendRecForFilter(srcRec *Record, start, end int, ridIdx map[int]struct{})
- func (rec *Record) AppendRecForSeries(srcRec *Record, start, end int, ridIdx map[int]struct{})
- func (rec *Record) AppendRecForTagSet(srcRec *Record, start, end int)
- func (rec *Record) AppendTime(time ...int64)
- func (rec *Record) BuildEmptyIntervalRec(min, max, interval int64, initRecMeta, hasInterval, ascending bool, ...)
- func (rec *Record) Clone() *Record
- func (rec *Record) CodecSize() int
- func (rec *Record) ColNums() int
- func (rec *Record) Column(i int) *ColVal
- func (rec *Record) Columns() []ColVal
- func (rec *Record) Copy(ascending bool, tr *util.TimeRange, schema Schemas) *Record
- func (rec *Record) CopyColMetaTo(dst *Record)
- func (rec *Record) CopyColVals() []ColVal
- func (rec *Record) CopyImpl(srcRec *Record, setSchema, reserveColVal, ascending bool, ...)
- func (rec *Record) FieldIndexs(colName string) int
- func (rec *Record) FieldIndexsFast(colName string) int
- func (rec *Record) GetTagIndexAndKey() ([]*[]byte, []int)
- func (rec *Record) InitColVal(start, end int)
- func (rec *Record) IntervalFirstTime() int64
- func (rec *Record) IntervalLastTime() int64
- func (rec *Record) IsIntervalRecRowNull(row int) bool
- func (rec *Record) IsNilRow(row int) bool
- func (rec *Record) KickNilRow(dst *Record, colAux *ColAux) *Record
- func (rec Record) Len() int
- func (rec Record) Less(i, j int) bool
- func (rec *Record) Marshal(buf []byte) []byte
- func (rec *Record) MaxTime(isAscending bool) int64
- func (rec *Record) Merge(newRec *Record)
- func (rec *Record) MergeRecord(newRec, oldRec *Record)
- func (rec *Record) MergeRecordByMaxTimeOfOldRec(newRec, oldRec *Record, newPos, oldPos, limitRows int, ascending bool) (int, int)
- func (rec *Record) MergeRecordDescend(newRec, oldRec *Record)
- func (rec *Record) MergeRecordLimitRows(newRec, oldRec *Record, newPos, oldPos, limitRows int) (int, int)
- func (rec *Record) MergeRecordLimitRowsDescend(newRec, oldRec *Record, newPos, oldPos, limitRows int) (int, int)
- func (rec *Record) MinTime(isAscending bool) int64
- func (rec *Record) PadRecord(other *Record)
- func (rec *Record) ReserveColVal(size int)
- func (rec *Record) ReserveColumnRows(rows int)
- func (rec *Record) ReserveSchema(size int)
- func (rec *Record) ReserveSchemaAndColVal(size int)
- func (rec *Record) Reset()
- func (rec *Record) ResetDeep()
- func (rec *Record) ResetForReuse()
- func (rec *Record) ResetWithSchema(schema Schemas)
- func (rec *Record) ResizeBySchema(schema Schemas, initColMeta bool)
- func (rec *Record) Reuse()
- func (rec *Record) ReuseForWrite()
- func (rec *Record) RowNums() int
- func (rec *Record) Schemas() []Field
- func (rec *Record) SetSchema(schemas Schemas)
- func (rec *Record) Size() int
- func (rec *Record) SliceFromRecord(srcRec *Record, start, end int)
- func (rec *Record) Split(dst []Record, maxRows int) []Record
- func (rec *Record) String() string
- func (rec Record) Swap(i, j int)
- func (rec *Record) Time(i int) int64
- func (rec *Record) TimeColumn() *ColVal
- func (rec *Record) Times() []int64
- func (rec *Record) TransIntervalRec2Rec(re *Record, start, end int)
- func (rec *Record) TryPadColumn()
- func (rec *Record) TryPadColumn2AlignBitmap()
- func (rec *Record) Unmarshal(buf []byte)
- func (rec *Record) UnmarshalUnsafe(buf []byte)
- func (rec *Record) UpdateIntervalRecRow(re *Record, recRow, row int)
- type RecordPool
- type RecordType
- type Schemas
- func (sh Schemas) Copy() Schemas
- func (sh Schemas) Equal(to Schemas) bool
- func (sh Schemas) Field(i int) *Field
- func (sh Schemas) FieldIndex(name string) int
- func (sh Schemas) FieldIndexMap() map[string]int
- func (sh Schemas) Len() int
- func (sh Schemas) Less(i, j int) bool
- func (sh Schemas) String() string
- func (sh Schemas) StringFieldIndex() []int
- func (sh Schemas) Swap(i, j int)
- type SortAux
- func (aux *SortAux) Init(times []int64)
- func (aux *SortAux) InitRecord(schemas Schemas)
- func (aux *SortAux) InitSections()
- func (aux *SortAux) Len() int
- func (aux *SortAux) Less(i, j int) bool
- func (aux *SortAux) RowIndex(i int) (int, int, int)
- func (aux *SortAux) SectionLen() int
- func (aux *SortAux) Swap(i, j int)
- type SortData
- func (d *SortData) Init(times []int64, sortKey []PrimaryKey, record *Record, tcDuration time.Duration)
- func (d *SortData) InitDuplicateRows(size int, record *Record, deduplicate bool)
- func (d *SortData) InitRecord(recSchemas Schemas)
- func (d *SortData) Len() int
- func (d *SortData) Less(i, j int) bool
- func (d *SortData) Reset()
- func (d *SortData) Swap(i, j int)
- type SortHelper
- type SortItem
- type StringSlice
- func (sli *StringSlice) Compare(i, j int) int
- func (sli *StringSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
- func (sli *StringSlice) PadStringSlice(cv *ColVal)
- func (sli *StringSlice) PadStringSliceWithLimit(cv *ColVal, compareLength int)
- func (sli *StringSlice) Swap(i, j int)
- type Times
Constants ¶
const ( TimeField = "time" SeqIDField = "__seq_id___" RecMaxLenForRuse = 512 RecMaxRowNumForRuse = 2024 BigRecMaxRowNumForRuse = 32 * 1024 )
const TimeClusterCol = "clustered_time"
Variables ¶
var ( BitMask = [8]byte{1, 2, 4, 8, 16, 32, 64, 128} FlippedBitMask = [8]byte{254, 253, 251, 247, 239, 223, 191, 127} )
var ( LogStoreRecordPool = NewRecordPool(LogStoreRecord) LogStoreFailRecordPool = NewRecordPool(LogStoreFailRecord) )
Functions ¶
func AppendFieldToCol ¶ added in v1.4.0
func AppendFieldsToRecord ¶ added in v1.4.0
func AppendFieldsToRecordSlow ¶ added in v1.4.0
func AppendSeqIdSchema ¶ added in v1.3.0
func ArrowBoolColToNativeBoolCol ¶ added in v1.1.0
func ArrowColToNativeColWithNull ¶ added in v1.1.0
func ArrowColToNativeColWithoutNull ¶ added in v1.1.0
func ArrowRecordToNativeRecord ¶ added in v1.1.0
func ArrowTypeToNativeType ¶ added in v1.1.0
func CheckRecord ¶
func CheckRecord(rec *Record)
func CheckTimes ¶ added in v1.1.0
func CheckTimes(times []int64)
func FastSortRecord ¶ added in v1.3.0
func FillZeroUint32 ¶ added in v1.4.0
func GetTimeRangeEndIndex ¶
GetTimeRangeEndIndex return last time index in times <= endTime
func GetTimeRangeStartIndex ¶
GetTimeRangeStartIndex return first time index in times >= startTime
func ReserveInt64Slice ¶ added in v1.3.0
func ToInfluxqlTypes ¶
func ToModelTypes ¶
func ToPrimitiveType ¶ added in v1.1.0
ToPrimitiveType convert the tag to the primitive data type. Integer is supported later.
func Uint64ToBytesUnsafe ¶ added in v1.0.0
func UpdateBooleanColumnFirst ¶ added in v1.0.0
func UpdateBooleanColumnFirstFast ¶ added in v1.0.0
func UpdateBooleanColumnLast ¶ added in v1.0.0
func UpdateBooleanColumnLastFast ¶ added in v1.0.0
func UpdateBooleanColumnMax ¶ added in v1.0.0
func UpdateBooleanColumnMaxFast ¶ added in v1.0.0
func UpdateBooleanColumnMin ¶ added in v1.0.0
func UpdateBooleanColumnMinFast ¶ added in v1.0.0
func UpdateBooleanFirst ¶ added in v1.0.0
func UpdateBooleanFirstFast ¶ added in v1.0.0
func UpdateBooleanLast ¶ added in v1.0.0
func UpdateBooleanLastFast ¶ added in v1.0.0
func UpdateBooleanMax ¶ added in v1.0.0
func UpdateBooleanMaxFast ¶ added in v1.0.0
func UpdateBooleanMin ¶ added in v1.0.0
func UpdateBooleanMinFast ¶ added in v1.0.0
func UpdateCount ¶ added in v1.0.0
func UpdateCountFast ¶ added in v1.0.0
func UpdateFloatColumnFirst ¶ added in v1.0.0
func UpdateFloatColumnFirstFast ¶ added in v1.0.0
func UpdateFloatColumnLast ¶ added in v1.0.0
func UpdateFloatColumnLastFast ¶ added in v1.0.0
func UpdateFloatColumnMax ¶ added in v1.0.0
func UpdateFloatColumnMaxFast ¶ added in v1.0.0
func UpdateFloatColumnMin ¶ added in v1.0.0
func UpdateFloatColumnMinFast ¶ added in v1.0.0
func UpdateFloatCountOriginProm ¶ added in v1.4.0
func UpdateFloatCountProm ¶ added in v1.3.0
func UpdateFloatFirst ¶ added in v1.0.0
func UpdateFloatFirstFast ¶ added in v1.0.0
func UpdateFloatLast ¶ added in v1.0.0
func UpdateFloatLastFast ¶ added in v1.0.0
func UpdateFloatMax ¶ added in v1.0.0
func UpdateFloatMaxFast ¶ added in v1.0.0
func UpdateFloatMin ¶ added in v1.0.0
func UpdateFloatMinFast ¶ added in v1.0.0
func UpdateFloatSum ¶ added in v1.0.0
func UpdateFloatSumFast ¶ added in v1.0.0
func UpdateIntegerColumnFirst ¶ added in v1.0.0
func UpdateIntegerColumnFirstFast ¶ added in v1.0.0
func UpdateIntegerColumnLast ¶ added in v1.0.0
func UpdateIntegerColumnLastFast ¶ added in v1.0.0
func UpdateIntegerColumnMax ¶ added in v1.0.0
func UpdateIntegerColumnMaxFast ¶ added in v1.0.0
func UpdateIntegerColumnMin ¶ added in v1.0.0
func UpdateIntegerColumnMinFast ¶ added in v1.0.0
func UpdateIntegerFirst ¶ added in v1.0.0
func UpdateIntegerFirstFast ¶ added in v1.0.0
func UpdateIntegerLast ¶ added in v1.0.0
func UpdateIntegerLastFast ¶ added in v1.0.0
func UpdateIntegerMax ¶ added in v1.0.0
func UpdateIntegerMaxFast ¶ added in v1.0.0
func UpdateIntegerMin ¶ added in v1.0.0
func UpdateIntegerMinFast ¶ added in v1.0.0
func UpdateIntegerSum ¶ added in v1.0.0
func UpdateIntegerSumFast ¶ added in v1.0.0
func UpdateMaxProm ¶ added in v1.3.0
func UpdateMinProm ¶ added in v1.3.0
func UpdateSeqIdCol ¶ added in v1.3.0
func UpdateStringColumnFirst ¶ added in v1.0.0
func UpdateStringColumnLast ¶ added in v1.0.0
func UpdateStringFirst ¶ added in v1.0.0
func UpdateStringLast ¶ added in v1.0.0
Types ¶
type BooleanSlice ¶ added in v1.1.0
type BooleanSlice struct {
V []bool
}
func (*BooleanSlice) Compare ¶ added in v1.1.0
func (sli *BooleanSlice) Compare(i, j int) int
func (*BooleanSlice) CompareSingleValue ¶ added in v1.1.0
func (sli *BooleanSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
func (*BooleanSlice) PadBoolSlice ¶ added in v1.1.0
func (sli *BooleanSlice) PadBoolSlice(cv *ColVal)
func (*BooleanSlice) PadBoolSliceWithLimit ¶ added in v1.2.0
func (sli *BooleanSlice) PadBoolSliceWithLimit(cv *ColVal, compareLength int)
func (*BooleanSlice) Swap ¶ added in v1.1.0
func (sli *BooleanSlice) Swap(i, j int)
type BulkRecords ¶ added in v1.3.0
type BulkRecords struct { TotalLen int64 Repo string Logstream string Rec *Record MsgType RecordType }
type CircularRecordPool ¶
type CircularRecordPool struct {
// contains filtered or unexported fields
}
func NewCircularRecordPool ¶
func NewCircularRecordPool(recordPool *RecordPool, recordNum int, schema Schemas, initColMeta bool) *CircularRecordPool
func (*CircularRecordPool) Get ¶
func (p *CircularRecordPool) Get() *Record
func (*CircularRecordPool) GetBySchema ¶
func (p *CircularRecordPool) GetBySchema(s Schemas) *Record
func (*CircularRecordPool) GetIndex ¶
func (p *CircularRecordPool) GetIndex() int
func (*CircularRecordPool) Put ¶
func (p *CircularRecordPool) Put()
func (*CircularRecordPool) PutRecordInCircularPool ¶
func (p *CircularRecordPool) PutRecordInCircularPool()
type ColMergePerformer ¶ added in v1.0.0
type ColMergePerformer struct {
// contains filtered or unexported fields
}
func NewColMergePerformer ¶ added in v1.1.0
func NewColMergePerformer() *ColMergePerformer
func (*ColMergePerformer) InitColVal ¶ added in v1.1.0
func (p *ColMergePerformer) InitColVal(order, unordered *ColVal, typ int)
func (*ColMergePerformer) InitTimes ¶ added in v1.1.0
func (p *ColMergePerformer) InitTimes(order, unordered []int64)
func (*ColMergePerformer) MergeOrder ¶ added in v1.0.0
func (p *ColMergePerformer) MergeOrder()
func (*ColMergePerformer) MergeSameTime ¶ added in v1.0.0
func (p *ColMergePerformer) MergeSameTime()
func (*ColMergePerformer) MergeUnordered ¶ added in v1.0.0
func (p *ColMergePerformer) MergeUnordered()
func (*ColMergePerformer) MergedResult ¶ added in v1.1.0
func (p *ColMergePerformer) MergedResult() (*ColVal, []int64)
func (*ColMergePerformer) Times ¶ added in v1.0.0
func (p *ColMergePerformer) Times(order bool) *Times
type ColVal ¶
type ColVal struct { Val []byte Offset []uint32 Bitmap []byte BitMapOffset int Len int NilCount int }
func (*ColVal) AppendBitmap ¶
func (*ColVal) AppendBoolean ¶
func (*ColVal) AppendBooleanNull ¶
func (cv *ColVal) AppendBooleanNull()
func (*ColVal) AppendBooleanNullReserve ¶ added in v1.0.0
func (cv *ColVal) AppendBooleanNullReserve()
func (*ColVal) AppendBooleanNulls ¶
func (*ColVal) AppendBooleans ¶
func (*ColVal) AppendByteSlice ¶ added in v1.2.0
func (*ColVal) AppendColVal ¶
func (*ColVal) AppendColValFast ¶ added in v1.2.0
func (*ColVal) AppendFloat ¶
func (*ColVal) AppendFloatNull ¶
func (cv *ColVal) AppendFloatNull()
func (*ColVal) AppendFloatNullReserve ¶ added in v1.0.0
func (cv *ColVal) AppendFloatNullReserve()
func (*ColVal) AppendFloatNulls ¶
func (*ColVal) AppendFloats ¶
func (*ColVal) AppendInteger ¶
func (*ColVal) AppendIntegerNull ¶
func (cv *ColVal) AppendIntegerNull()
func (*ColVal) AppendIntegerNullReserve ¶ added in v1.0.0
func (cv *ColVal) AppendIntegerNullReserve()
func (*ColVal) AppendIntegerNulls ¶
func (*ColVal) AppendIntegers ¶
func (*ColVal) AppendString ¶
func (*ColVal) AppendStringNull ¶
func (cv *ColVal) AppendStringNull()
func (*ColVal) AppendStringNulls ¶
func (*ColVal) AppendStrings ¶
func (*ColVal) AppendTimes ¶ added in v1.0.0
func (*ColVal) AppendWithNilCount ¶ added in v1.0.0
AppendWithNilCount modified from method "ColVal.Append" Compared with method "ColVal.Append", the number of nulls is calculated in advance.
func (*ColVal) BooleanValueWithNullReserve ¶ added in v1.0.0
func (*ColVal) BooleanValues ¶
func (*ColVal) FillBitmap ¶ added in v1.0.0
func (*ColVal) FirstBooleanValue ¶
func (*ColVal) FirstFloatValue ¶
func (*ColVal) FirstIntegerValue ¶
func (*ColVal) FirstStringValue ¶
func (*ColVal) FloatValueWithNullReserve ¶ added in v1.0.0
func (*ColVal) FloatValues ¶
func (*ColVal) GetOffsAndLens ¶ added in v1.2.0
func (*ColVal) GetValIndexRange ¶
func (*ColVal) InitBitMap ¶ added in v1.1.0
func (*ColVal) Int8Values ¶
func (*ColVal) IntegerValueWithNullReserve ¶ added in v1.0.0
func (*ColVal) IntegerValues ¶
func (*ColVal) LastBooleanValue ¶
func (*ColVal) LastFloatValue ¶
func (*ColVal) LastIntegerValue ¶
func (*ColVal) LastStringValue ¶
func (*ColVal) MaxBooleanValue ¶
func (*ColVal) MaxBooleanValues ¶
func (*ColVal) MaxFloatValue ¶
func (*ColVal) MaxFloatValues ¶
func (*ColVal) MaxIntegerValue ¶
func (*ColVal) MaxIntegerValues ¶
func (*ColVal) MinBooleanValue ¶
func (*ColVal) MinBooleanValues ¶
func (*ColVal) MinFloatValue ¶
func (*ColVal) MinFloatValues ¶
func (*ColVal) MinIntegerValue ¶
func (*ColVal) MinIntegerValues ¶
func (*ColVal) PadEmptyCol2AlignBitmap ¶ added in v1.3.0
PadEmptyCol2AlignBitmap used to fill the empty column, including setting bitMapOffset.
func (*ColVal) PadEmptyCol2FixBitmap ¶ added in v1.3.0
PadEmptyCol2FixBitmap used to fix the empty column, including setting the bitMapOffset and appending the bitMap.
func (*ColVal) RemoveLastBoolean ¶ added in v1.3.0
func (cv *ColVal) RemoveLastBoolean()
func (*ColVal) RemoveLastFloat ¶ added in v1.3.0
func (cv *ColVal) RemoveLastFloat()
func (*ColVal) RemoveLastInteger ¶ added in v1.3.0
func (cv *ColVal) RemoveLastInteger()
func (*ColVal) RemoveLastString ¶ added in v1.3.0
func (cv *ColVal) RemoveLastString()
func (*ColVal) RemoveNilOffset ¶ added in v1.2.0
func (*ColVal) RepairBitmap ¶ added in v1.2.0
func (cv *ColVal) RepairBitmap()
func (*ColVal) ReserveBitmap ¶
func (*ColVal) SplitColBySize ¶ added in v1.2.0
func (*ColVal) StringValues ¶
func (*ColVal) SubBitmapBytes ¶
func (*ColVal) SubFloatValues ¶
func (*ColVal) SubIntegerValues ¶
func (*ColVal) UnmarshalUnsafe ¶ added in v1.4.0
func (*ColVal) UpdateBooleanValue ¶ added in v1.0.0
func (*ColVal) UpdateFloatValue ¶ added in v1.0.0
func (*ColVal) UpdateIntegerValue ¶ added in v1.0.0
func (*ColVal) UpdateStringIntoNull ¶ added in v1.0.0
func (*ColVal) UpdateStringValue ¶ added in v1.0.0
func (*ColVal) ValidCount ¶
func (*ColVal) ValidString ¶
type ColumnSortHelper ¶ added in v1.2.0
type ColumnSortHelper struct {
// contains filtered or unexported fields
}
func NewColumnSortHelper ¶ added in v1.2.0
func NewColumnSortHelper() *ColumnSortHelper
func (*ColumnSortHelper) Release ¶ added in v1.2.0
func (h *ColumnSortHelper) Release()
func (*ColumnSortHelper) Sort ¶ added in v1.2.0
func (h *ColumnSortHelper) Sort(rec *Record) *Record
type FloatSlice ¶ added in v1.1.0
type FloatSlice struct {
V []float64
}
func (*FloatSlice) Compare ¶ added in v1.1.0
func (sli *FloatSlice) Compare(i, j int) int
func (*FloatSlice) CompareSingleValue ¶ added in v1.1.0
func (sli *FloatSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
func (*FloatSlice) PadFloatSlice ¶ added in v1.1.0
func (sli *FloatSlice) PadFloatSlice(cv *ColVal)
func (*FloatSlice) PadFloatSliceWithLimit ¶ added in v1.2.0
func (sli *FloatSlice) PadFloatSliceWithLimit(cv *ColVal, compareLength int)
func (*FloatSlice) Swap ¶ added in v1.1.0
func (sli *FloatSlice) Swap(i, j int)
type IntegerSlice ¶ added in v1.1.0
type IntegerSlice struct {
V []int64
}
func (*IntegerSlice) Compare ¶ added in v1.1.0
func (sli *IntegerSlice) Compare(i, j int) int
func (*IntegerSlice) CompareSingleValue ¶ added in v1.1.0
func (sli *IntegerSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
func (*IntegerSlice) PadIntSlice ¶ added in v1.1.0
func (sli *IntegerSlice) PadIntSlice(cv *ColVal)
func (*IntegerSlice) PadIntSliceWithLimit ¶ added in v1.2.0
func (sli *IntegerSlice) PadIntSliceWithLimit(cv *ColVal, compareLength int)
func (*IntegerSlice) Swap ¶ added in v1.1.0
func (sli *IntegerSlice) Swap(i, j int)
type MemGroup ¶ added in v1.4.0
type MemGroup struct {
// contains filtered or unexported fields
}
func (*MemGroup) MicroSince ¶ added in v1.4.0
func (*MemGroup) SetShardID ¶ added in v1.4.0
type MemGroups ¶ added in v1.4.0
type MemGroups struct {
// contains filtered or unexported fields
}
func NewMemGroups ¶ added in v1.4.0
func (*MemGroups) BeforeWrite ¶ added in v1.4.0
func (rs *MemGroups) BeforeWrite()
type MergeColVal ¶ added in v1.0.0
type MergeColVal struct {
// contains filtered or unexported fields
}
func NewMergeColVal ¶ added in v1.0.0
func NewMergeColVal() *MergeColVal
func (*MergeColVal) AppendSequence ¶ added in v1.0.0
func (mcv *MergeColVal) AppendSequence(src *MergeColVal, limit int)
func (*MergeColVal) IsNil ¶ added in v1.0.0
func (mcv *MergeColVal) IsNil() bool
func (*MergeColVal) Skip ¶ added in v1.0.0
func (mcv *MergeColVal) Skip(limit int)
type MergeHelper ¶ added in v1.0.0
type MergeHelper struct {
// contains filtered or unexported fields
}
func NewMergeHelper ¶ added in v1.0.0
func NewMergeHelper() *MergeHelper
func (*MergeHelper) AddUnorderedCol ¶ added in v1.0.0
func (h *MergeHelper) AddUnorderedCol(col *ColVal, times []int64)
type MergePerformer ¶ added in v1.0.0
type PrimaryKey ¶ added in v1.1.0
type RecMeta ¶
type RecMeta struct { IntervalIndex []int // Times used to store the time for // first/last aggregation Times [][]int64 ColMeta []ColMeta // used for pre agg // contains filtered or unexported fields }
func (*RecMeta) AssignRecMetaTimes ¶
type Record ¶
func GetRecordFromPool ¶ added in v1.3.0
func GetRecordFromPool(p *RecordPool, schema Schemas) *Record
func NewRecordBuilder ¶
func SortRecordIfNeeded ¶ added in v1.3.0
func (*Record) AddTagIndexAndKey ¶
func (*Record) AppendIntervalEmptyRow ¶ added in v1.0.0
func (*Record) AppendIntervalEmptyRows ¶ added in v1.0.0
func (*Record) AppendRecFast ¶ added in v1.2.0
func (*Record) AppendRecForFilter ¶ added in v1.1.1
AppendRecForFilter crop redundant columns, which are not required after filtering. ridIdx indicates the index of a redundant column.
func (*Record) AppendRecForSeries ¶
func (*Record) AppendRecForTagSet ¶
func (*Record) AppendTime ¶
func (*Record) BuildEmptyIntervalRec ¶ added in v1.0.0
func (*Record) CopyColMetaTo ¶
func (*Record) CopyColVals ¶
func (*Record) FieldIndexs ¶
func (*Record) FieldIndexsFast ¶ added in v1.3.0
schema except the last time column, which is sorted in ascending order.
func (*Record) GetTagIndexAndKey ¶
func (*Record) InitColVal ¶
func (*Record) IntervalFirstTime ¶ added in v1.0.0
func (*Record) IntervalLastTime ¶ added in v1.0.0
func (*Record) IsIntervalRecRowNull ¶ added in v1.0.0
func (*Record) MergeRecord ¶
func (*Record) MergeRecordByMaxTimeOfOldRec ¶
func (*Record) MergeRecordDescend ¶
func (*Record) MergeRecordLimitRows ¶
func (*Record) MergeRecordLimitRowsDescend ¶
func (*Record) ReserveColVal ¶
func (*Record) ReserveColumnRows ¶
func (*Record) ReserveSchema ¶
func (*Record) ReserveSchemaAndColVal ¶
func (*Record) ResetForReuse ¶
func (rec *Record) ResetForReuse()
func (*Record) ResetWithSchema ¶
func (*Record) ResizeBySchema ¶ added in v1.0.0
func (*Record) ReuseForWrite ¶ added in v1.3.0
func (rec *Record) ReuseForWrite()
func (*Record) SliceFromRecord ¶
func (*Record) TimeColumn ¶
func (*Record) TransIntervalRec2Rec ¶ added in v1.0.0
func (*Record) TryPadColumn ¶
func (rec *Record) TryPadColumn()
func (*Record) TryPadColumn2AlignBitmap ¶ added in v1.3.0
func (rec *Record) TryPadColumn2AlignBitmap()
TryPadColumn2AlignBitmap used to fill the empty columns and ensure bitmap alignment.
func (*Record) UnmarshalUnsafe ¶ added in v1.4.0
UnmarshalUnsafe use pointers instead of copied slices when unmarshalling ColVals. After calling this function, the buf []byte must not be modified.
func (*Record) UpdateIntervalRecRow ¶ added in v1.0.0
type RecordPool ¶
type RecordPool struct {
// contains filtered or unexported fields
}
func NewRecordPool ¶
func NewRecordPool(recordType RecordType) *RecordPool
func (*RecordPool) Get ¶
func (p *RecordPool) Get() *Record
func (*RecordPool) Put ¶
func (p *RecordPool) Put(rec *Record)
func (*RecordPool) PutBigRecord ¶ added in v1.3.0
func (p *RecordPool) PutBigRecord(rec *Record)
type RecordType ¶ added in v1.0.0
type RecordType uint8
const ( IntervalRecordPool RecordType = iota FileCursorPool FileLoopCursorPool FileCursorValidRowPool FileCursorFilterRecordPool AggPool TsmMergePool TsspSequencePool SequenceAggPool SeriesPool ColumnReaderPool LogStoreReaderPool SeriesLoopPool LogStoreRecord LogStoreFailRecord UnknownPool )
type Schemas ¶
type Schemas []Field
func ArrowSchemaToNativeSchema ¶ added in v1.1.0
func (Schemas) FieldIndex ¶
func (Schemas) FieldIndexMap ¶ added in v1.3.0
func (Schemas) StringFieldIndex ¶ added in v1.3.0
type SortAux ¶
type SortAux struct { RowIds []int32 Times []int64 SortRec *Record // contains filtered or unexported fields }
func (*SortAux) InitRecord ¶
func (*SortAux) InitSections ¶ added in v1.2.0
func (aux *SortAux) InitSections()
func (*SortAux) SectionLen ¶ added in v1.2.0
type SortData ¶ added in v1.1.0
type SortData struct { Times []int64 RowIds []int32 DuplicateRows []bool Data []SortItem SortRec *Record // contains filtered or unexported fields }
func (*SortData) InitDuplicateRows ¶ added in v1.1.0
func (*SortData) InitRecord ¶ added in v1.1.0
type SortHelper ¶ added in v1.0.0
type SortHelper struct { SortData *SortData //Multi-field sort data // contains filtered or unexported fields }
func NewSortHelper ¶ added in v1.1.0
func NewSortHelper() *SortHelper
func (*SortHelper) MemSize ¶ added in v1.4.0
func (h *SortHelper) MemSize() int
func (*SortHelper) Release ¶ added in v1.1.0
func (h *SortHelper) Release()
func (*SortHelper) Sort ¶ added in v1.0.0
func (h *SortHelper) Sort(rec *Record) *Record
func (*SortHelper) SortForColumnStore ¶ added in v1.1.0
func (h *SortHelper) SortForColumnStore(rec *Record, orderBy []PrimaryKey, deduplicate bool, tcDuration time.Duration) *Record
type StringSlice ¶ added in v1.1.0
type StringSlice struct {
V []string
}
func (*StringSlice) Compare ¶ added in v1.1.0
func (sli *StringSlice) Compare(i, j int) int
func (*StringSlice) CompareSingleValue ¶ added in v1.1.0
func (sli *StringSlice) CompareSingleValue(data interface{}, positionX, positionY int) (int, error)
func (*StringSlice) PadStringSlice ¶ added in v1.1.0
func (sli *StringSlice) PadStringSlice(cv *ColVal)
func (*StringSlice) PadStringSliceWithLimit ¶ added in v1.2.0
func (sli *StringSlice) PadStringSliceWithLimit(cv *ColVal, compareLength int)
func (*StringSlice) Swap ¶ added in v1.1.0
func (sli *StringSlice) Swap(i, j int)
Source Files
¶
- column.go
- column_boolean.go
- column_codec.go
- column_float.go
- column_integer.go
- column_sort.go
- column_string.go
- column_util.go
- meger.go
- reccord_functions.go
- record.go
- record_check.go
- record_codec.go
- record_group.go
- record_meta.go
- record_pool.go
- record_sort.go
- record_trans.go
- schema.go
- schema_codec.go
- sort.go
- sort_item.go
- utils.go