# Functions
BuildColumn builds histogram from samples for column.
CMSketchFromProto converts CMSketch from its protobuf representation.
CMSketchToProto converts CMSketch to its protobuf representation.
FMSketchFromProto converts FMSketch from its protobuf representation.
FMSketchToProto converts FMSketch to its protobuf representation.
HistogramEqual tests if two histograms are equal.
HistogramFromProto converts Histogram from its protobuf representation.
HistogramToProto converts Histogram to its protobuf representation.
MergeHistograms merges two histograms.
NewCMSketch returns a new CM sketch.
NewFMSketch returns a new FM sketch.
NewHandle creates a Handle for update stats.
NewHistogram creates a new histogram.
NewQueryFeedback returns a new query feedback.
NewSortedBuilder creates a new SortedBuilder.
PseudoTable creates a pseudo table statistics when statistic can not be found in KV store.
SampleCollectorFromProto converts SampleCollector from its protobuf representation.
SampleCollectorToProto converts SampleCollector to its protobuf representation.
SaveStatsToStorage saves the stats to storage.
# Constants
StatsOwnerKey is the stats owner path that is saved to etcd.
StatsPrompt is the prompt for stats owner manager.
# Variables
AutoAnalyzeMinCnt means if the count of table is less than this value, we needn't do auto analyze.
# Structs
AnalyzeResult is used to represent analyze result.
Bucket store the bucket count and repeat.
CMSketch is used to estimate point queries.
Column represents a column histogram.
FMSketch is used to count the number of distinct elements in a set.
Handle can update stats info periodically.
Histogram represents statistics for a column or index.
Index represents an index histogram.
JSONTable is used for dumping statistics.
QueryFeedback is used to represent the query feedback info.
SampleBuilder is used to build samples for columns.
SampleCollector will collect Samples and calculate the count and ndv of an attribute.
SessionStatsCollector is a list item that holds the delta mapper.
SortedBuilder is used to build histograms for PK and index.
Table represents statistics for a table.