Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder Class Reference

Utility class for rebuilding the wb_items_per_site table. More...

Public Member Functions

 __construct (SiteLinkTable $siteLinkTable, EntityLookup $entityLookup, EntityPrefetcher $entityPrefetcher, ILBFactory $lbFactory)
 
 setBatchSize ( $batchSize)
 
 setReporter (MessageReporter $reporter)
 Sets the reporter to use for reporting preogress. More...
 
 rebuild (EntityIdPager $entityIdPager)
 

Private Member Functions

 rebuildSiteLinks (array $itemIds)
 
 report ( $msg)
 

Private Attributes

 $siteLinkTable
 
 $entityLookup
 
 $entityPrefetcher
 
 $reporter = null
 
 $batchSize = 100
 
 $lbFactory
 

Detailed Description

Utility class for rebuilding the wb_items_per_site table.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::__construct ( SiteLinkTable  $siteLinkTable,
EntityLookup  $entityLookup,
EntityPrefetcher  $entityPrefetcher,
ILBFactory  $lbFactory 
)

Member Function Documentation

◆ rebuild()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::rebuild ( EntityIdPager  $entityIdPager)

◆ rebuildSiteLinks()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::rebuildSiteLinks ( array  $itemIds)
private
Parameters
EntityId[]$itemIds
Returns
int

◆ report()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::report (   $msg)
private
Parameters
string$msg

◆ setBatchSize()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::setBatchSize (   $batchSize)
Parameters
int$batchSize

◆ setReporter()

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::setReporter ( MessageReporter  $reporter)

Sets the reporter to use for reporting preogress.

Parameters
MessageReporter$reporter

Member Data Documentation

◆ $batchSize

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$batchSize = 100
private

◆ $entityLookup

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$entityLookup
private

◆ $entityPrefetcher

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$entityPrefetcher
private

◆ $lbFactory

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$lbFactory
private

◆ $reporter

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$reporter = null
private

◆ $siteLinkTable

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$siteLinkTable
private

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