package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

Build is used to build a specific AggFunc implementation according to the input aggFuncDesc.
BuildWindowFunctions builds specific window function according to function description and order by columns.
GetDatumMemSize calculates the memory size of each types.Datum in sortRow.byItems.
NewDeque inits a new MinMaxDeque.
NewPartialResult4ApproxCountDistinct builds a partial result for agg function ApproxCountDistinct.
NewSerializeHelper creates a new SerializeHelper.
WriteTime writes `t` into `buf`.

# Constants

DefBoolSize is the size of bool.
DefBytesBufferSize is the size of bytes.Buffer.
DefDurationSize is the size of duration.
DefFloat64Size is the size of float64.
DefInt64Size is the size of int64.
DefInterfaceSize is the size of interface.
DefMaxMinDequeSize is the size of maxMinHeap.
DefMyDecimalSize is the size of MyDecimal.
DefPartialResult4ApproxCountDistinctSize is the size of partialResult4ApproxCountDistinct.
DefPartialResult4AvgDecimalSize is the size of partialResult4AvgDecimal.
DefPartialResult4AvgDistinctDecimalSize is the size of partialResult4AvgDistinctDecimal.
DefPartialResult4AvgDistinctFloat64Size is the size of partialResult4AvgDistinctFloat64.
DefPartialResult4AvgFloat64Size is the size of partialResult4AvgFloat64.
DefPartialResult4BitFuncSize the size of partialResult4BitFunc.
DefPartialResult4CountDistinctDecimalSize is the size of partialResult4CountDistinctDecimal.
DefPartialResult4CountDistinctDurationSize is the size of partialResult4CountDistinctDuration.
DefPartialResult4CountDistinctIntSize is the size of partialResult4CountDistinctInt.
DefPartialResult4CountDistinctRealSize is the size of partialResult4CountDistinctReal.
DefPartialResult4CountDistinctStringSize is the size of partialResult4CountDistinctString.
DefPartialResult4CountSize is the size of partialResult4Count.
DefPartialResult4CountWithDistinctSize is the size of partialResult4CountWithDistinct.
DefPartialResult4CumeDistSize is the size of partialResult4CumeDist.
DefPartialResult4FirstRowDecimalSize is the size of partialResult4FirstRowDecimal.
DefPartialResult4FirstRowDurationSize is the size of partialResult4FirstRowDuration.
DefPartialResult4FirstRowEnumSize is the size of partialResult4FirstRowEnum.
DefPartialResult4FirstRowFloat32Size is the size of partialResult4FirstRowFloat32.
DefPartialResult4FirstRowFloat64Size is the size of partialResult4FirstRowFloat64.
DefPartialResult4FirstRowIntSize is the size of partialResult4FirstRowInt.
DefPartialResult4FirstRowJSONSize is the size of partialResult4FirstRowJSON.
DefPartialResult4FirstRowSetSize is the size of partialResult4FirstRowSet.
DefPartialResult4FirstRowStringSize is the size of partialResult4FirstRowString.
DefPartialResult4FirstRowTimeSize is the size of partialResult4FirstRowTime.
DefPartialResult4FirstRowVectorFloat32Size is the size of partialResult4FirstRowVectorFloat32.
DefPartialResult4FirstValueSize is the size of partialResult4FirstValue.
DefPartialResult4GroupConcatDistinctSize is the size of partialResult4GroupConcatDistinct.
DefPartialResult4GroupConcatOrderDistinctSize is the size of partialResult4GroupConcatOrderDistinct.
DefPartialResult4GroupConcatOrderSize is the size of partialResult4GroupConcatOrder.
DefPartialResult4GroupConcatSize is the size of partialResult4GroupConcat.
DefPartialResult4JsonArrayagg is the size of partialResult4JsonArrayagg.
DefPartialResult4JsonObjectAgg is the size of partialResult4JsonObject.
DefPartialResult4LastValueSize is the size of partialResult4LastValue.
DefPartialResult4LeadLagSize is the size of partialResult4LeadLag.
DefPartialResult4MaxMinDecimalSize is the size of partialResult4MaxMinDecimal.
DefPartialResult4MaxMinDurationSize is the size of partialResult4MaxMinDuration.
DefPartialResult4MaxMinEnumSize is the size of partialResult4MaxMinEnum.
DefPartialResult4MaxMinFloat32Size is the size of partialResult4MaxMinFloat32.
DefPartialResult4MaxMinFloat64Size is the size of partialResult4MaxMinFloat64.
DefPartialResult4MaxMinIntSize is the size of partialResult4MaxMinInt.
DefPartialResult4MaxMinJSONSize is the size of partialResult4MaxMinJSON.
DefPartialResult4MaxMinSetSize is the size of partialResult4MaxMinSet.
DefPartialResult4MaxMinStringSize is the size of partialResult4MaxMinString.
DefPartialResult4MaxMinTimeSize is the size of partialResult4MaxMinTime.
DefPartialResult4MaxMinUintSize is the size of partialResult4MaxMinUint.
DefPartialResult4MaxMinVectorFloat32Size is the size of partialResult4MaxMinVectorFloat32.
DefPartialResult4NthValueSize is the size of partialResult4NthValue.
DefPartialResult4Ntile is the size of partialResult4Ntile.
DefPartialResult4RankSize is the size of partialResult4Rank.
DefPartialResult4RowNumberSize is the size of partialResult4RowNumberSize.
DefPartialResult4SumDecimalSize is the size of partialResult4SumDecimal.
DefPartialResult4SumDistinctDecimalSize is the size of partialResult4SumDistinctDecimal.
DefPartialResult4SumDistinctFloat64Size is the size of partialResult4SumDistinctFloat64.
DefPartialResult4SumFloat64Size is the size of partialResult4SumFloat64.
DefPartialResult4VarPopDistinctFloat64Size is the size of partialResult4VarPopDistinctFloat64.
DefPartialResult4VarPopFloat64Size is the size of partialResult4VarPopFloat64.
DefRowSize is the size of row.
DefSliceSize represents size of an empty Slice.
DefTimeSize is the size of time.
DefTopNRowsSize is the size of topNRows.
DefUint32Size is the size of uint32.
DefUint64Size is the size of uint64.
DefValue4DecimalSize is the size of value4Decimal.
DefValue4DurationSize is the size of value4Duration.
DefValue4Float32Size is the size of value4Float32.
DefValue4Float64Size is the size of value4Float64.
DefValue4IntSize is the size of value4Int.
DefValue4JSONSize is the size of value4JSON.
DefValue4StringSize is the size of value4String.
DefValue4TimeSize is the size of value4Time.
DefValue4VectorFloat32Size is the size of value4VectorFloat32.

# Structs

MinMaxDeque is an array based double end queue.
Pair pairs items and their indices in MinMaxDeque.
SerializeHelper is the helper for serializing agg function meta data.

# Interfaces

AggFunc is the interface to evaluate the aggregate functions.
MaxMinSlidingWindowAggFunc is the interface to evaluate the max/min agg function using sliding window.
SlidingWindowAggFunc is the interface to evaluate the aggregate functions using sliding window.

# Type aliases

AggFuncBuildContext is used to build aggregation functions.
AggFuncUpdateContext is used to update the aggregate result.
AggPartialResultMapper contains aggregate function results.
PartialResult represents data structure to store the partial result for the aggregate functions.