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

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

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

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 = ItemId::class
 
 $statsPrefix = 'PrefetchingItemTermLookup'
 
- 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 items, using the new, normalized schema (starting at wbt_item_terms).

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

Shares the same implementation with PrefetchingPropertyTermLookup

Member Function Documentation

◆ makeMapping()

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

Member Data Documentation

◆ $entityIdClass

Wikibase\Lib\Store\Sql\Terms\PrefetchingItemTermLookup::$entityIdClass = ItemId::class
protected

◆ $statsPrefix

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

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