Wikibase
MediaWiki Wikibase extension
|
PropertyTermStoreWriter implementation for the 2019 SQL based secondary property term storage. More...
Public Member Functions | |
__construct (ILoadBalancer $loadBalancer, JobQueueGroup $jobQueueGroup, TermInLangIdsAcquirer $termInLangIdsAcquirer, TermInLangIdsResolver $termInLangIdsResolver, StringNormalizer $stringNormalizer) | |
storeTerms (PropertyId $propertyId, Fingerprint $fingerprint) | |
deleteTerms (PropertyId $propertyId) | |
Private Member Functions | |
getDbw () | |
submitJobToCleanTermStorageRowsIfUnused (array $termInLangIdsToClean) | |
acquireAndInsertTerms (PropertyId $propertyId, Fingerprint $fingerprint) | |
Acquire term in lang IDs for the given Fingerprint, store them in wbt_property_terms for the given property ID, and return term in lang IDs that are no longer referenced and might now need to be cleaned up. | |
deleteTermsWithoutClean (PropertyId $propertyId) | |
Delete wbt_property_terms rows for the given property ID, and return term in lang IDs that are no longer referenced and might now need to be cleaned up. | |
Private Attributes | |
$loadBalancer | |
$termInLangIdsAcquirer | |
$termInLangIdsResolver | |
$stringNormalizer | |
$jobQueueGroup | |
PropertyTermStoreWriter implementation for the 2019 SQL based secondary property term storage.
This can only be used to write to Property term stores on the local database.
Wikibase\Lib\Store\Sql\Terms\DatabasePropertyTermStoreWriter::__construct | ( | ILoadBalancer | $loadBalancer, |
JobQueueGroup | $jobQueueGroup, | ||
TermInLangIdsAcquirer | $termInLangIdsAcquirer, | ||
TermInLangIdsResolver | $termInLangIdsResolver, | ||
StringNormalizer | $stringNormalizer | ||
) |
|
private |
Acquire term in lang IDs for the given Fingerprint, store them in wbt_property_terms for the given property ID, and return term in lang IDs that are no longer referenced and might now need to be cleaned up.
PropertyId | $propertyId | |
Fingerprint | $fingerprint |
Wikibase\Lib\Store\Sql\Terms\DatabasePropertyTermStoreWriter::deleteTerms | ( | PropertyId | $propertyId | ) |
|
private |
Delete wbt_property_terms rows for the given property ID, and return term in lang IDs that are no longer referenced and might now need to be cleaned up.
(The returned term in lang IDs might still be used in wbt_property_terms rows for other property IDs, and this should be checked just before cleanup. However, that may happen in a different transaction than this call.)
PropertyId | $propertyId |
|
private |
Wikibase\Lib\Store\Sql\Terms\DatabasePropertyTermStoreWriter::storeTerms | ( | PropertyId | $propertyId, |
Fingerprint | $fingerprint | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |