predicatecolumn

package
v1.1.0-beta.0...-d0ea9e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL