package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
MergeGlobalStatsTopNByConcurrency merge partition topN by concurrency.
MergePartitionStats2GlobalStats merge the partition-level stats to global-level stats based on the tableInfo.
MergePartitionStats2GlobalStatsByTableID merge the partition-level stats to global-level stats based on the tableID.
MergePartTopN2GlobalTopN is used to merge the partition-level topN to global-level topN.
NewAsyncMergePartitionStats2GlobalStats creates a new AsyncMergePartitionStats2GlobalStats.
NewStatsGlobal creates a new StatsGlobal.
NewStatsWrapper returns wrapper.
NewTopnStatsMergeTask returns task.
NewTopnStatsMergeWorker returns topn merge worker.
WriteGlobalStatsToStorage is to write global stats to storage.
# Constants
MaxPartitionMergeBatchSize indicates the max batch size for a worker to merge partition stats.
# Structs
AsyncMergePartitionStats2GlobalStats is used to merge partition stats to global stats.
GlobalStats is used to store the statistics contained in the global-level stats which is generated by the merge of partition-level stats.
StatsWrapper wrapper stats.
TopnStatsMergeResponse indicates topn merge worker response.
TopnStatsMergeTask indicates a task for merge topn stats.