Documentation ¶
Index ¶
- func NewStatsHistory(statsHandle types.StatsHandle) types.StatsHistory
- func RecordHistoricalStatsMeta(ctx context.Context, sctx sessionctx.Context, tableID int64, version uint64, ...) error
- func RecordHistoricalStatsToStorage(sctx sessionctx.Context, physicalID int64, js *util.JSONTable) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatsHistory ¶
func NewStatsHistory(statsHandle types.StatsHandle, ) types.StatsHistory
NewStatsHistory creates a new StatsHistory.
func RecordHistoricalStatsMeta ¶
func RecordHistoricalStatsMeta( ctx context.Context, sctx sessionctx.Context, tableID int64, version uint64, source string, ) error
RecordHistoricalStatsMeta records the historical stats meta.
func RecordHistoricalStatsToStorage ¶
func RecordHistoricalStatsToStorage(sctx sessionctx.Context, physicalID int64, js *util.JSONTable) (uint64, error)
RecordHistoricalStatsToStorage records the given table's stats data to mysql.stats_history
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.