Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\Sql\Terms Namespace Reference

Namespaces

 Util
 

Classes

class  CachedDatabasePropertyLabelResolver
 Resolves and caches property labels (which are unique per language) into entity IDs through DatabaseTermIdsResolver api. More...
 
class  CleanTermsIfUnusedJob
 A job to cleanup the wbt_* terms table rows when they may not be needed any more. More...
 
class  DatabaseInnerTermStoreCleaner
 Cleans up the normalized term store after some terms are no longer needed. More...
 
class  DatabaseItemTermStoreWriter
 ItemTermStoreWriter implementation for the 2019 SQL based secondary item term storage. More...
 
class  DatabaseMatchingTermsLookup
 MatchingTermsLookup implementation in the new term store. More...
 
class  DatabasePropertyTermStoreWriter
 PropertyTermStoreWriter implementation for the 2019 SQL based secondary property term storage. More...
 
class  DatabaseTermInLangIdsAcquirer
 A TermInLangIdsAcquirer implementation using the database tables wbt_term_in_lang, wbt_text_in_lang, and wbt_text. More...
 
class  DatabaseTermInLangIdsResolver
 Term in lang ID resolver using the normalized database schema. More...
 
class  DatabaseTermStoreWriterBase
 Base class for item/property TermStoreWriters. More...
 
class  DatabaseTypeIdsStore
 An acquirer and resolver for term type IDs implemented using a NameTableStore for wbt_type. More...
 
class  DatabaseUsageCheckingTermStoreCleaner
 
class  InMemoryTermStore
 
class  InMemoryTypeIdsStore
 Acquires and resolves unique and constant ids of types, stored in memory. More...
 
class  NormalizedTermStorageMapping
 Helper for mapping columns names of item/property in term storage. More...
 
class  PrefetchingEntityTermLookupBase
 Base class for a PrefetchingTermLookup that only supports a single entity type, using the new, normalized schema (starting at wbt_item_terms/wbt_property_terms). More...
 
class  PrefetchingItemTermLookup
 A PrefetchingTermLookup that only supports items, using the new, normalized schema (starting at wbt_item_terms). More...
 
class  PrefetchingPropertyTermLookup
 A PrefetchingTermLookup that only supports properties, using the new, normalized schema (starting at wbt_property_terms). More...
 
class  StaticTypeIdsStore
 A type IDs acquirer and resolver that only encapsulates access to a static array of IDs. More...
 
interface  TermInLangIdsAcquirer
 Consumers acquire ids for stored terms to be used to link entities to these terms. More...
 
interface  TermInLangIdsResolver
 A service to turn term in lang IDs into terms, the inverse of TermInLangIdsAcquirer. More...
 
class  TermInLangIdsResolverFactory
 
interface  TermStoreCleaner
 Interface for deleting IDs acquired from a TermInLangIdsAcquirer, including any further cleanup if necessary. More...
 
class  TermStoreWriterFactory
 Factory for creating writer objects relating to the 2019 SQL based terms storage. More...
 
interface  TypeIdsAcquirer
 Acquires unique constant ids for stored types. More...
 
interface  TypeIdsLookup
 Lookup service to fetch ids of stored types. More...
 
interface  TypeIdsResolver
 A service to turn type IDs into types, the inverse of TypeIdsAcquirer. More...
 

Functions

 termsArrayFromFingerprint (Fingerprint $fingerprint, StringNormalizer $stringNormalizer)
 
 makeMapping ()
 
 getMapping ()
 

Variables

trait FingerprintableEntityTermStoreTrait
 Trait for code reuse between DatabaseItemTermStoreWriter and DatabasePropertyTermStoreWriter. More...
 
trait NormalizedTermStorageMappingTrait
 Trait for code reuse of mapping for entity term storage. More...
 

Function Documentation

◆ getMapping()

Wikibase\Lib\Store\Sql\Terms\getMapping ( )
private

◆ makeMapping()

Wikibase\Lib\Store\Sql\Terms\makeMapping ( )
abstractprotected

◆ termsArrayFromFingerprint()

Wikibase\Lib\Store\Sql\Terms\termsArrayFromFingerprint ( Fingerprint  $fingerprint,
StringNormalizer  $stringNormalizer 
)
private

Variable Documentation

◆ FingerprintableEntityTermStoreTrait

trait Wikibase::Lib::Store::Sql::Terms\FingerprintableEntityTermStoreTrait
Initial value:
{
use FindUnusedTermTrait

Trait for code reuse between DatabaseItemTermStoreWriter and DatabasePropertyTermStoreWriter.

Author
Addshore
See also
Item & Property Terms

◆ NormalizedTermStorageMappingTrait

trait Wikibase::Lib::Store::Sql::Terms\NormalizedTermStorageMappingTrait
Initial value:
{
private $mapping

Trait for code reuse of mapping for entity term storage.

See also
Item & Property Terms