pdhelper

package
v1.1.0-beta.0...-68ac9ec Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalPDHelper = defaultPDHelper()

GlobalPDHelper is the global variable for PDHelper.

Functions

This section is empty.

Types

type PDHelper

type PDHelper struct {
	// contains filtered or unexported fields
}

PDHelper is used to get some information from PD.

func (*PDHelper) GetApproximateTableCountFromStorage

func (p *PDHelper) GetApproximateTableCountFromStorage(
	ctx context.Context, sctx sessionctx.Context,
	tid int64, dbName, tableName, partitionName string,
) (float64, bool)

GetApproximateTableCountFromStorage gets the approximate count of the table.

func (*PDHelper) Start

func (p *PDHelper) Start()

Start is used to start the background task of PDHelper. Currently, the background task is used to clean up TTL cache.

func (*PDHelper) Stop

func (p *PDHelper) Stop()

Stop stops the background task of PDHelper.

Jump to

Keyboard shortcuts

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