Documentation ¶
Index ¶
- func CollectColumnsInExtendedStats(sctx sessionctx.Context, tableID int64) ([]int64, error)
- func GetPredicateColumns(sctx sessionctx.Context, tableID int64) ([]int64, error)
- func LoadColumnStatsUsage(sctx sessionctx.Context, loc *time.Location) (map[model.TableItemID]statstypes.ColStatsTimeInfo, error)
- func LoadColumnStatsUsageForTable(sctx sessionctx.Context, loc *time.Location, tableID int64) (map[model.TableItemID]statstypes.ColStatsTimeInfo, error)
- func SaveColumnStatsUsageForTable(sctx sessionctx.Context, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectColumnsInExtendedStats ¶
func CollectColumnsInExtendedStats(sctx sessionctx.Context, tableID int64) ([]int64, error)
CollectColumnsInExtendedStats returns IDs of the columns involved in extended stats.
func GetPredicateColumns ¶
func GetPredicateColumns(sctx sessionctx.Context, tableID int64) ([]int64, error)
GetPredicateColumns returns IDs of predicate columns, which are the columns whose stats are used(needed) when generating query plans.
func LoadColumnStatsUsage ¶
func LoadColumnStatsUsage(sctx sessionctx.Context, loc *time.Location) (map[model.TableItemID]statstypes.ColStatsTimeInfo, error)
LoadColumnStatsUsage loads column stats usage information from disk.
func LoadColumnStatsUsageForTable ¶
func LoadColumnStatsUsageForTable(sctx sessionctx.Context, loc *time.Location, tableID int64) (map[model.TableItemID]statstypes.ColStatsTimeInfo, error)
LoadColumnStatsUsageForTable loads column stats usage information for a specific table from disk.
func SaveColumnStatsUsageForTable ¶
func SaveColumnStatsUsageForTable( sctx sessionctx.Context, colStatsUsage map[model.TableItemID]statstypes.ColStatsTimeInfo, ) error
SaveColumnStatsUsageForTable saves column stats usage information for a specific table to disk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.