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.
Click to show internal directories.
Click to hide internal directories.