package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
GetAverageAnalysisDuration returns the average duration of the last 5 successful analyses for each specified partition.
GetLastFailedAnalysisDuration returns the duration since the last failed analysis.
GetPartitionStats gets the partition stats.
IsDynamicPartitionedTableAnalysisJob checks whether the job is a dynamic partitioned table analysis job.
NewAnalysisJobFactory creates a new AnalysisJobFactory.
NewAnalysisPriorityQueue creates a new AnalysisPriorityQueue2.
NewAutoAnalysisTimeWindow creates a new AutoAnalysisTimeWindow.
NewDynamicPartitionedTableAnalysisJob creates a new job for analyzing a dynamic partitioned table's partitions.
NewNonPartitionedTableAnalysisJob creates a new TableAnalysisJob for analyzing the physical table.
NewPartitionIDAndName creates a new PartitionIDAndName.
NewPriorityCalculator creates a new PriorityCalculator.
NewStaticPartitionTableAnalysisJob creates a job for analyzing a static partitioned table.
# Constants
EventNewIndex represents a special event for newly added indexes.
EventNone represents no special event.
LastFailedDurationQueryForPartition is used to get the duration of the last failed analysis for each specified partition.
NoRecord is used to indicate that there is no related record in mysql.analyze_jobs.
# Variables
ErrHeapIsEmpty is returned when the heap is empty.
# Structs
AnalysisJobFactory is responsible for creating different types of analysis jobs.
AnalysisPriorityQueue is a priority queue for TableAnalysisJobs.
AutoAnalysisTimeWindow is a struct that contains the start and end time of the auto analyze time window.
DynamicPartitionedTableAnalysisJob is a TableAnalysisJob for analyzing dynamic pruned partitioned table.
Indicators contains some indicators to evaluate the table priority.
NonPartitionedTableAnalysisJob is a TableAnalysisJob for analyzing the physical table.
PartitionIDAndName is a struct that contains the ID and name of a partition.
PriorityCalculator implements the WeightCalculator interface.
StaticPartitionedTableAnalysisJob is a job for analyzing a static partitioned table.
# Interfaces
AnalysisJob is the interface for the analysis job.
# Type aliases
FailureJobHook is the failureHook function that will be called after the job is failed.
SuccessJobHook is the successHook function that will be called after the job is completed.