Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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, RepoDomainDb $db)
 
 setBatchSize (int $batchSize)
 
 setReporter (MessageReporter $reporter)
 Sets the reporter to use for reporting progress.
 
 rebuild (EntityIdPager $entityIdPager)
 

Private Member Functions

 rebuildSiteLinks (array $itemIds)
 
 report (string $msg)
 

Private Attributes

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

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,
RepoDomainDb $db )

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

◆ report()

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

◆ setBatchSize()

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

◆ setReporter()

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

Sets the reporter to use for reporting progress.

Member Data Documentation

◆ $batchSize

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

◆ $db

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

◆ $entityLookup

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

◆ $entityPrefetcher

Wikibase\Repo\Store\Sql\ItemsPerSiteBuilder::$entityPrefetcher
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: