package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev

# 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.
NeedAnalyzeTable checks if we need to analyze the table: 1.
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.
SampleCollectorFromProto converts SampleCollector from its protobuf representation.
SampleCollectorToProto converts SampleCollector to its protobuf representation.
TableAnalyzed checks if the table is analyzed.
UpdateCMSketch updates the CMSketch by feedback.
UpdateHistogram updates the histogram according buckets.
ValueToString converts a possible encoded value to a formatted string.

# Constants

DumpAll indicates dump all the delta info in to kv.
DumpDelta indicates dump part of the delta info in to kv.
MaxErrorRate is the max error rate of estimate row count of a not pseudo column.
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.
DumpStatsDeltaRatio is the lower bound of `Modify Count / Table Count` for stats delta to be dumped.
FeedbackProbability is the probability to collect the feedback.
MaxNumberOfRanges is the max number of ranges before split to collect feedback.
MaxQueryFeedbackCount is the max number of feedback that cache in memory.
MinLogErrorRate is the minimum error rate for a feedback to be logged.
MinLogScanCount is the minimum scan count for a feedback to be logged.
RatioOfPseudoEstimate means if modifyCount / statsTblCount is greater than this ratio, we think the stats is invalid and use pseudo estimation.

# Structs

AnalyzeResult is used to represent analyze result.
Bucket store the bucket count and repeat.
BucketFeedback stands for all the feedback for a bucket.
CMSketch is used to estimate point queries.
Column represents a column histogram.
ErrorRate is the error rate of estimate row count by bucket and cm sketch.
FMSketch is used to count the number of distinct elements in a set.
Handle can update stats info periodically.
HistColl is a collection of histogram.
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.