Wikibase
MediaWiki Wikibase extension
|
Utility class for rebuilding the wb_property_info table. More...
Public Member Functions | |
__construct (PropertyInfoTable $propertyInfoTable, PropertyLookup $propertyLookup, PropertyInfoBuilder $propertyInfoBuilder, EntityNamespaceLookup $entityNamespaceLookup) | |
setRebuildAll ( $all) | |
setBatchSize ( $batchSize) | |
setReporter (MessageReporter $reporter) | |
Sets the reporter to use for reporting progress. More... | |
rebuildPropertyInfo () | |
Rebuild the property info entries. More... | |
Private Member Functions | |
updatePropertyInfo (NumericPropertyId $id) | |
Updates the property info entry for the given property. More... | |
reportMessage ( $msg) | |
Private Attributes | |
$propertyInfoTable | |
$propertyLookup | |
$propertyInfoBuilder | |
$entityNamespaceLookup | |
$reporter = null | |
$shouldUpdateAllEntities = false | |
$batchSize = 100 | |
Utility class for rebuilding the wb_property_info table.
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::__construct | ( | PropertyInfoTable | $propertyInfoTable, |
PropertyLookup | $propertyLookup, | ||
PropertyInfoBuilder | $propertyInfoBuilder, | ||
EntityNamespaceLookup | $entityNamespaceLookup | ||
) |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::rebuildPropertyInfo | ( | ) |
Rebuild the property info entries.
Use the rebuildPropertyInfo.php maintenance script to invoke this from the command line.
Database updates a batched into multiple transactions. Do not call this method within an (explicit) database transaction.
|
private |
string | $msg |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setBatchSize | ( | $batchSize | ) |
int | $batchSize |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setRebuildAll | ( | $all | ) |
bool | $all |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setReporter | ( | MessageReporter | $reporter | ) |
Sets the reporter to use for reporting progress.
MessageReporter | $reporter |
|
private |
Updates the property info entry for the given property.
The property is loaded in full using the EntityLookup provide to the constructor.
RuntimeException |
NumericPropertyId | $id | the Property to process |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |