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

# Functions

BlocksToJSONTable convert gzip-compressed blocks to JSONTable.
ChangeGlobalStatsID changes the table ID in global-stats to the new table ID.
CheckSkipColumnPartiion checks if we can skip loading the partition.
CheckSkipPartition checks if we can skip loading the partition.
CleanFakeItemsForShowHistInFlights cleans the invalid inserted items.
ClearOutdatedHistoryStats clear outdated historical stats.
CMSketchAndTopNFromStorageWithHighPriority reads CMSketch and TopN from storage.
CMSketchFromStorage reads CMSketch from storage.
DeleteTableStatsFromKV deletes table statistics from kv.
DumpTableStatColSizeToKV dumps the column size stats to storage.
ExtendedStatsFromStorage reads extended stats from storage.
FMSketchFromStorage reads FMSketch from storage.
GCStats will garbage collect the useless stats' info.
GenJSONTableFromStats generate jsonTable from tableInfo and stats.
HistMetaFromStorageWithHighPriority reads the meta info of the histogram from the storage.
HistogramFromStorageWithPriority wraps the HistogramFromStorage with the given kv.Priority.
InsertColStats2KV insert a record to stats_histograms with distinct_count 1 and insert a bucket to stats_buckets with default value.
InsertExtendedStats inserts a record into mysql.stats_extended and update version in mysql.stats_meta.
InsertTableStats2KV inserts a record standing for a new table to stats_meta and inserts some records standing for the new columns and indices which belong to this table.
JSONTableToBlocks convert JSONTable to json, then compresses it to blocks by gzip.
LoadHistogram will load histogram from storage.
LoadNeededHistograms will load histograms for those needed columns/indices.
MarkExtendedStatsDeleted update the status of mysql.stats_extended to be `deleted` and the version of mysql.stats_meta.
NewStatsGC creates a new StatsGC.
NewStatsReadWriter creates a new StatsReadWriter.
SaveExtendedStatsToStorage writes extended stats of a table into mysql.stats_extended.
SaveMetaToStorage will save stats_meta to storage.
SaveStatsToStorage saves the stats to storage.
SaveTableStatsToStorage saves the stats of a table to storage.
StatsMetaByTableIDFromStorage gets the stats meta of a table from storage.
StatsMetaCountAndModifyCount reads count and modify_count for the given table from mysql.stats_meta.
StatsMetaCountAndModifyCountForUpdate reads count and modify_count for the given table from mysql.stats_meta with lock.
TableHistoricalStatsToJSON converts the historical stats of a table to JSONTable.
TableStatsFromJSON loads statistic from JSONTable and return the Table of statistic.
TableStatsFromStorage loads table stats info from storage.
TopNFromStorage reads TopN from storage.
UpdateStatsMeta update the stats meta stat for this Table.
UpdateStatsMetaVersionForGC updates the version of stats_meta to be deleted soon.
UpdateStatsVersion will set statistics version to the newest TS, then tidb-server will reload automatic.

# Structs

TestLoadStatsErr is only for test.