Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Store\Sql\SqlStore Class Reference

Implementation of the store interface using an SQL backend via MediaWiki's storage abstraction layer. More...

+ Inheritance diagram for Wikibase\Repo\Store\Sql\SqlStore:
+ Collaboration diagram for Wikibase\Repo\Store\Sql\SqlStore:

Public Member Functions

 __construct (EntityChangeFactory $entityChangeFactory, EntityIdParser $entityIdParser, EntityIdComposer $entityIdComposer, EntityIdLookup $entityIdLookup, EntityTitleStoreLookup $entityTitleLookup, EntityNamespaceLookup $entityNamespaceLookup, IdGenerator $idGenerator, WikibaseServices $wikibaseServices, HookContainer $hookContainer, DatabaseEntitySource $entitySource, SettingsArray $settings, PropertyInfoLookup $propertyInfoLookup)
 
 newSiteLinkStore ()
 
 getEntityByLinkedTitleLookup ()
 
 newItemsWithoutSitelinksFinder ()
 
 getEntityRedirectLookup ()
 
 getEntityLookup ( $cache=self::LOOKUP_CACHING_ENABLED, string $lookupMode=LookupConstants::LATEST_FROM_REPLICA)
 
 getEntityStoreWatcher ()
 
 getEntityStore ()
 
 getEntityRevisionLookup ( $cache=self::LOOKUP_CACHING_ENABLED)
 
 getPropertyInfoLookup ()
 
 getPropertyInfoStore ()
 
 getEntityPrefetcher ()
 
 getEntityChangeLookup ()
 
 getChangeStore ()
 

Private Member Functions

 newEntityStore ()
 
 getEntityRevisionLookupCacheKey ()
 
 getCacheRetrievingEntityRevisionLookup ()
 
 newPropertyInfoStore ()
 Creates a new PropertyInfoStore Note: cache key used by the lookup should be the same as the cache key used by CachedPropertyInfoLookup.
 
 getPropertyInfoTable ()
 
 newEntityPrefetcher ()
 

Private Attributes

 $entityChangeFactory
 
 $entityIdParser
 
 $entityIdComposer
 
 $entityRevisionLookup = null
 
 $rawEntityRevisionLookup = null
 
 $cacheRetrievingEntityRevisionLookup = null
 
 $entityStore = null
 
 $entityStoreWatcher = null
 
PropertyInfoLookup $propertyInfoLookup
 
 $propertyInfoStore = null
 
 $propertyInfoTable = null
 
 $entityPrefetcher = null
 
 $entityIdLookup
 
 $entityTitleLookup
 
 $entityNamespaceLookup
 
 $wikibaseServices
 
 $hookContainer
 
 $cacheKeyPrefix
 
 $cacheKeyGroup
 
 $cacheType
 
 $cacheDuration
 
 $idGenerator
 
 $entitySource
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Repo\Store\Store
const LOOKUP_CACHING_ENABLED = ''
 
const LOOKUP_CACHING_DISABLED = 'uncached'
 
const LOOKUP_CACHING_RETRIEVE_ONLY = 'retrieve-only'
 

Detailed Description

Implementation of the store interface using an SQL backend via MediaWiki's storage abstraction layer.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\Sql\SqlStore::__construct ( EntityChangeFactory $entityChangeFactory,
EntityIdParser $entityIdParser,
EntityIdComposer $entityIdComposer,
EntityIdLookup $entityIdLookup,
EntityTitleStoreLookup $entityTitleLookup,
EntityNamespaceLookup $entityNamespaceLookup,
IdGenerator $idGenerator,
WikibaseServices $wikibaseServices,
HookContainer $hookContainer,
DatabaseEntitySource $entitySource,
SettingsArray $settings,
PropertyInfoLookup $propertyInfoLookup )
Parameters
EntityChangeFactory$entityChangeFactory
EntityIdParser$entityIdParser
EntityIdComposer$entityIdComposer
EntityIdLookup$entityIdLookup
EntityTitleStoreLookup$entityTitleLookup
EntityNamespaceLookup$entityNamespaceLookup
IdGenerator$idGenerator
WikibaseServices$wikibaseServicesService container providing data access services
HookContainer$hookContainerService container providing data access services
DatabaseEntitySource$entitySource
SettingsArray$settings

Member Function Documentation

◆ getCacheRetrievingEntityRevisionLookup()

Wikibase\Repo\Store\Sql\SqlStore::getCacheRetrievingEntityRevisionLookup ( )
private
Returns
CacheRetrievingEntityRevisionLookup

◆ getChangeStore()

Wikibase\Repo\Store\Sql\SqlStore::getChangeStore ( )
Returns
SqlChangeStore

Implements Wikibase\Repo\Store\Store.

◆ getEntityByLinkedTitleLookup()

Wikibase\Repo\Store\Sql\SqlStore::getEntityByLinkedTitleLookup ( )
See also
Store::getEntityByLinkedTitleLookup
Returns
EntityByLinkedTitleLookup

Implements Wikibase\Repo\Store\Store.

◆ getEntityChangeLookup()

Wikibase\Repo\Store\Sql\SqlStore::getEntityChangeLookup ( )
Returns
EntityChangeLookup

Implements Wikibase\Repo\Store\Store.

◆ getEntityLookup()

Wikibase\Repo\Store\Sql\SqlStore::getEntityLookup ( $cache = self::LOOKUP_CACHING_ENABLED,
string $lookupMode = LookupConstants::LATEST_FROM_REPLICA )
See also
Store::getEntityLookup
SqlStore::getEntityRevisionLookup

The EntityLookup returned by this method will resolve redirects.

Parameters
string$cacheOne of self::LOOKUP_CACHING_*
See also
self::LOOKUP_CACHING_DISABLED to get an uncached direct lookup self::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities self::LOOKUP_CACHING_ENABLED to get a caching lookup (default)
Parameters
string$lookupModeOne of LookupConstants::LATEST_FROM_*
Returns
EntityLookup

Implements Wikibase\Repo\Store\Store.

◆ getEntityPrefetcher()

Wikibase\Repo\Store\Sql\SqlStore::getEntityPrefetcher ( )
Returns
PrefetchingWikiPageEntityMetaDataAccessor

Implements Wikibase\Repo\Store\Store.

◆ getEntityRedirectLookup()

Wikibase\Repo\Store\Sql\SqlStore::getEntityRedirectLookup ( )
Returns
EntityRedirectLookup

Implements Wikibase\Repo\Store\Store.

◆ getEntityRevisionLookup()

Wikibase\Repo\Store\Sql\SqlStore::getEntityRevisionLookup ( $cache = self::LOOKUP_CACHING_ENABLED)
See also
Store::getEntityRevisionLookup
Parameters
string$cacheOne of self::LOOKUP_CACHING_* self::LOOKUP_CACHING_DISABLED to get an uncached direct lookup self::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities self::LOOKUP_CACHING_ENABLED to get a caching lookup (default)
Returns
EntityRevisionLookup

Implements Wikibase\Repo\Store\Store.

◆ getEntityRevisionLookupCacheKey()

Wikibase\Repo\Store\Sql\SqlStore::getEntityRevisionLookupCacheKey ( )
private
Returns
string

◆ getEntityStore()

Wikibase\Repo\Store\Sql\SqlStore::getEntityStore ( )
See also
Store::getEntityStore
Returns
EntityStore

Implements Wikibase\Repo\Store\Store.

◆ getEntityStoreWatcher()

Wikibase\Repo\Store\Sql\SqlStore::getEntityStoreWatcher ( )
See also
Store::getEntityStoreWatcher
Returns
EntityStoreWatcher

Implements Wikibase\Repo\Store\Store.

◆ getPropertyInfoLookup()

Wikibase\Repo\Store\Sql\SqlStore::getPropertyInfoLookup ( )
Deprecated
use WikibaseRepo::getPropertyInfoLookup instead
Returns
PropertyInfoLookup

Implements Wikibase\Repo\Store\Store.

◆ getPropertyInfoStore()

Wikibase\Repo\Store\Sql\SqlStore::getPropertyInfoStore ( )
See also
Store::getPropertyInfoStore
Returns
PropertyInfoStore

Implements Wikibase\Repo\Store\Store.

◆ getPropertyInfoTable()

Wikibase\Repo\Store\Sql\SqlStore::getPropertyInfoTable ( )
private
Returns
PropertyInfoTable

◆ newEntityPrefetcher()

Wikibase\Repo\Store\Sql\SqlStore::newEntityPrefetcher ( )
private
Returns
EntityPrefetcher

◆ newEntityStore()

Wikibase\Repo\Store\Sql\SqlStore::newEntityStore ( )
private
Returns
EntityStore

◆ newItemsWithoutSitelinksFinder()

Wikibase\Repo\Store\Sql\SqlStore::newItemsWithoutSitelinksFinder ( )
See also
Store::newItemsWithoutSitelinksFinder
Returns
ItemsWithoutSitelinksFinder

Implements Wikibase\Repo\Store\Store.

◆ newPropertyInfoStore()

Wikibase\Repo\Store\Sql\SqlStore::newPropertyInfoStore ( )
private

Creates a new PropertyInfoStore Note: cache key used by the lookup should be the same as the cache key used by CachedPropertyInfoLookup.

Returns
PropertyInfoStore

◆ newSiteLinkStore()

Wikibase\Repo\Store\Sql\SqlStore::newSiteLinkStore ( )
See also
Store::newSiteLinkStore
Returns
SiteLinkStore

Implements Wikibase\Repo\Store\Store.

Member Data Documentation

◆ $cacheDuration

Wikibase\Repo\Store\Sql\SqlStore::$cacheDuration
private

◆ $cacheKeyGroup

Wikibase\Repo\Store\Sql\SqlStore::$cacheKeyGroup
private

◆ $cacheKeyPrefix

Wikibase\Repo\Store\Sql\SqlStore::$cacheKeyPrefix
private

◆ $cacheRetrievingEntityRevisionLookup

Wikibase\Repo\Store\Sql\SqlStore::$cacheRetrievingEntityRevisionLookup = null
private

◆ $cacheType

Wikibase\Repo\Store\Sql\SqlStore::$cacheType
private

◆ $entityChangeFactory

Wikibase\Repo\Store\Sql\SqlStore::$entityChangeFactory
private

◆ $entityIdComposer

Wikibase\Repo\Store\Sql\SqlStore::$entityIdComposer
private

◆ $entityIdLookup

Wikibase\Repo\Store\Sql\SqlStore::$entityIdLookup
private

◆ $entityIdParser

Wikibase\Repo\Store\Sql\SqlStore::$entityIdParser
private

◆ $entityNamespaceLookup

Wikibase\Repo\Store\Sql\SqlStore::$entityNamespaceLookup
private

◆ $entityPrefetcher

Wikibase\Repo\Store\Sql\SqlStore::$entityPrefetcher = null
private

◆ $entityRevisionLookup

Wikibase\Repo\Store\Sql\SqlStore::$entityRevisionLookup = null
private

◆ $entitySource

Wikibase\Repo\Store\Sql\SqlStore::$entitySource
private

◆ $entityStore

Wikibase\Repo\Store\Sql\SqlStore::$entityStore = null
private

◆ $entityStoreWatcher

Wikibase\Repo\Store\Sql\SqlStore::$entityStoreWatcher = null
private

◆ $entityTitleLookup

Wikibase\Repo\Store\Sql\SqlStore::$entityTitleLookup
private

◆ $hookContainer

Wikibase\Repo\Store\Sql\SqlStore::$hookContainer
private

◆ $idGenerator

Wikibase\Repo\Store\Sql\SqlStore::$idGenerator
private

◆ $propertyInfoLookup

PropertyInfoLookup Wikibase\Repo\Store\Sql\SqlStore::$propertyInfoLookup
private

◆ $propertyInfoStore

Wikibase\Repo\Store\Sql\SqlStore::$propertyInfoStore = null
private

◆ $propertyInfoTable

Wikibase\Repo\Store\Sql\SqlStore::$propertyInfoTable = null
private

◆ $rawEntityRevisionLookup

Wikibase\Repo\Store\Sql\SqlStore::$rawEntityRevisionLookup = null
private

◆ $wikibaseServices

Wikibase\Repo\Store\Sql\SqlStore::$wikibaseServices
private

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