Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Store\Sql\DispatchStats Class Reference

Utility class for collecting dispatch statistics. More...

+ Collaboration diagram for Wikibase\Repo\Store\Sql\DispatchStats:

Public Member Functions

 __construct (RepoDomainDb $repoDomainDb)
 
 getDispatchStats ()
 

Private Member Functions

 loadLimitedNumberOfChanges (IReadableDatabase $db, $limit)
 
 getWbChangesRowEstimate (IReadableDatabase $db)
 
 loadNumberOfEntities (IReadableDatabase $db)
 
 loadChangeTimes (IReadableDatabase $db)
 
 buildMinimumNumberOfChangesStats (int $limitedNumberOfChanges, array $changeTimesStats)
 
 buildEstimateStats (int $estimate, array $changeTimesStats)
 
 buildExactNumberOfChangesStats (int $numberOfChanges, int $numberOfEntities, array $changeTimesStats)
 

Private Attributes

RepoDomainDb $db
 

Detailed Description

Utility class for collecting dispatch statistics.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\Sql\DispatchStats::__construct ( RepoDomainDb $repoDomainDb)

Member Function Documentation

◆ buildEstimateStats()

Wikibase\Repo\Store\Sql\DispatchStats::buildEstimateStats ( int $estimate,
array $changeTimesStats )
private

◆ buildExactNumberOfChangesStats()

Wikibase\Repo\Store\Sql\DispatchStats::buildExactNumberOfChangesStats ( int $numberOfChanges,
int $numberOfEntities,
array $changeTimesStats )
private

◆ buildMinimumNumberOfChangesStats()

Wikibase\Repo\Store\Sql\DispatchStats::buildMinimumNumberOfChangesStats ( int $limitedNumberOfChanges,
array $changeTimesStats )
private

◆ getDispatchStats()

Wikibase\Repo\Store\Sql\DispatchStats::getDispatchStats ( )

◆ getWbChangesRowEstimate()

Wikibase\Repo\Store\Sql\DispatchStats::getWbChangesRowEstimate ( IReadableDatabase $db)
private

◆ loadChangeTimes()

Wikibase\Repo\Store\Sql\DispatchStats::loadChangeTimes ( IReadableDatabase $db)
private

◆ loadLimitedNumberOfChanges()

Wikibase\Repo\Store\Sql\DispatchStats::loadLimitedNumberOfChanges ( IReadableDatabase $db,
$limit )
private

◆ loadNumberOfEntities()

Wikibase\Repo\Store\Sql\DispatchStats::loadNumberOfEntities ( IReadableDatabase $db)
private

Member Data Documentation

◆ $db

RepoDomainDb Wikibase\Repo\Store\Sql\DispatchStats::$db
private

The documentation for this class was generated from the following file: