Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\ItemTermsRebuilder Class Reference

Public Member Functions

 __construct (ItemTermStoreWriter $itemTermStoreWriter, $itemIdIterable, MessageReporter $progressReporter, MessageReporter $errorReporter, ILBFactory $loadBalancerFactory, ItemLookup $itemLookup, $batchSize, $batchSpacingInSeconds)
 
 rebuild ()
 

Private Member Functions

 getIdBatches ()
 
 rebuildTermsForBatch (array $itemIds)
 
 saveTerms (Item $item)
 

Private Attributes

 $itemTermStoreWriter
 
 $itemIds
 
 $progressReporter
 
 $errorReporter
 
 $loadBalancerFactory
 
 $itemLookup
 
 $batchSize
 
 $batchSpacingInSeconds
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\ItemTermsRebuilder::__construct ( ItemTermStoreWriter  $itemTermStoreWriter,
  $itemIdIterable,
MessageReporter  $progressReporter,
MessageReporter  $errorReporter,
ILBFactory  $loadBalancerFactory,
ItemLookup  $itemLookup,
  $batchSize,
  $batchSpacingInSeconds 
)
Parameters
ItemTermStoreWriter$itemTermStoreWriter
$itemIdIterable
MessageReporter$progressReporter
MessageReporter$errorReporter
ILBFactory$loadBalancerFactory
ItemLookup$itemLookup
int$batchSize
int$batchSpacingInSeconds

Member Function Documentation

◆ getIdBatches()

Wikibase\Repo\Store\ItemTermsRebuilder::getIdBatches ( )
private

◆ rebuild()

Wikibase\Repo\Store\ItemTermsRebuilder::rebuild ( )

◆ rebuildTermsForBatch()

Wikibase\Repo\Store\ItemTermsRebuilder::rebuildTermsForBatch ( array  $itemIds)
private

◆ saveTerms()

Wikibase\Repo\Store\ItemTermsRebuilder::saveTerms ( Item  $item)
private

Member Data Documentation

◆ $batchSize

Wikibase\Repo\Store\ItemTermsRebuilder::$batchSize
private

◆ $batchSpacingInSeconds

Wikibase\Repo\Store\ItemTermsRebuilder::$batchSpacingInSeconds
private

◆ $errorReporter

Wikibase\Repo\Store\ItemTermsRebuilder::$errorReporter
private

◆ $itemIds

Wikibase\Repo\Store\ItemTermsRebuilder::$itemIds
private

◆ $itemLookup

Wikibase\Repo\Store\ItemTermsRebuilder::$itemLookup
private

◆ $itemTermStoreWriter

Wikibase\Repo\Store\ItemTermsRebuilder::$itemTermStoreWriter
private

◆ $loadBalancerFactory

Wikibase\Repo\Store\ItemTermsRebuilder::$loadBalancerFactory
private

◆ $progressReporter

Wikibase\Repo\Store\ItemTermsRebuilder::$progressReporter
private

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