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

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\ItemTermsRebuilder::__construct ( ItemTermStoreWriter $itemTermStoreWriter,
$itemIdIterable,
MessageReporter $progressReporter,
MessageReporter $errorReporter,
RepoDomainDb $db,
ItemLookup $itemLookup,
$batchSize,
$batchSpacingInSeconds )
Parameters
ItemTermStoreWriter$itemTermStoreWriter
iterable$itemIdIterable
MessageReporter$progressReporter
MessageReporter$errorReporter
RepoDomainDb$db
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

◆ $db

Wikibase\Repo\Store\ItemTermsRebuilder::$db
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

◆ $progressReporter

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

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