Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup Class Reference

A PrefetchingTermLookup that only supports properties, using the new, normalized schema (starting at wbt_property_terms). More...

+ Inheritance diagram for Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup:
+ Collaboration diagram for Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup:

Protected Member Functions

 makeMapping ()
 
- Protected Member Functions inherited from Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase
 getTermsOfType (EntityId $entityId, $termType, array $languageCodes)
 Gets the text string terms for a given type.
 
- Protected Member Functions inherited from Wikibase\Lib\Store\EntityTermLookupBase
 convertTermsToMap (array $wikibaseTerms)
 

Protected Attributes

 $entityIdClass = NumericPropertyId::class
 
 $statsPrefix = 'PrefetchingPropertyTermLookup'
 
- Protected Attributes inherited from Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase
 $entityIdClass
 
 $statsPrefix
 
 $termInLangIdsResolver
 

Additional Inherited Members

- Public Member Functions inherited from Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase
 __construct (DatabaseTermInLangIdsResolver $termInlangIdsResolver)
 
 getPrefetchedTerm (EntityId $entityId, $termType, $languageCode)
 Returns a term that was previously loaded by prefetchTerms.
 
 getPrefetchedAliases (EntityId $entityId, $languageCode)
 Returns terms that were previously loaded by prefetchTerms.
 
- Public Member Functions inherited from Wikibase\Lib\Store\EntityTermLookupBase
 getLabel (EntityId $entityId, $languageCode)
 
 getLabels (EntityId $entityId, array $languageCodes)
 
 getDescription (EntityId $entityId, $languageCode)
 
 getDescriptions (EntityId $entityId, array $languageCodes)
 
- Public Member Functions inherited from Wikibase\DataModel\Services\Term\TermBuffer
 prefetchTerms (array $entityIds, array $termTypes, array $languageCodes)
 Loads a set of terms into the buffer.
 

Detailed Description

A PrefetchingTermLookup that only supports properties, using the new, normalized schema (starting at wbt_property_terms).

Prefetches from DatabaseTermInLangIdsResolver(DB) and stores them in $terms (current process only). Looks up terms from $terms.

Shares the same implementation with PrefetchingItemTermLookup

Member Function Documentation

◆ makeMapping()

Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup::makeMapping ( )
protected

Member Data Documentation

◆ $entityIdClass

Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup::$entityIdClass = NumericPropertyId::class
protected

◆ $statsPrefix

Wikibase\Lib\Store\Sql\Terms\PrefetchingPropertyTermLookup::$statsPrefix = 'PrefetchingPropertyTermLookup'
protected

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