Wikibase
MediaWiki Wikibase extension
|
Store interface. More...
Public Member Functions | |
newSiteLinkStore () | |
getEntityByLinkedTitleLookup () | |
clear () | |
Removes all data from the store. | |
rebuild () | |
Rebuilds the store from the original data source. | |
getTermIndex () | |
Use of this method indicates cases that should be migrated away from the expectation that all of this functionality is provided by a single class. | |
getLegacyEntityTermStoreReader () | |
Use of this method represents cases that still need to be migrated away from using the legacy terms storage. | |
getLegacyEntityTermStoreWriter () | |
This method will result in having 0 calls post migration as the service used to write to the term store changes in WikibaseRepo::getItemTermStoreWriter and WikibaseRepo::getPropertyTermStoreWriter. | |
getLabelConflictFinder () | |
newItemsWithoutSitelinksFinder () | |
getEntityRedirectLookup () | |
getEntityLookup ( $cache=self::LOOKUP_CACHING_ENABLED, string $lookupMode=LookupConstants::LATEST_FROM_REPLICA) | |
getEntityRevisionLookup ( $cache=self::LOOKUP_CACHING_ENABLED) | |
getEntityStore () | |
getEntityStoreWatcher () | |
Returns an EntityStoreWatcher that should be notified of changes to entities, in order to keep any caches updated. | |
getPropertyInfoLookup () | |
getPropertyInfoStore () | |
getSiteLinkConflictLookup () | |
getEntityPrefetcher () | |
Returns an EntityPrefetcher which can be used to prefetch a list of entity ids in case we need to for example load a batch of entity ids. | |
getEntityChangeLookup () | |
getChangeStore () | |
Public Attributes | |
const | LOOKUP_CACHING_ENABLED = '' |
const | LOOKUP_CACHING_DISABLED = 'uncached' |
const | LOOKUP_CACHING_RETRIEVE_ONLY = 'retrieve-only' |
Store interface.
All interaction with store Wikibase does on top of storing pages and associated core MediaWiki indexing is done through this interface.
Wikibase\Repo\Store\Store::clear | ( | ) |
Removes all data from the store.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getChangeStore | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityByLinkedTitleLookup | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityChangeLookup | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityLookup | ( | $cache = self::LOOKUP_CACHING_ENABLED , |
|
string | $lookupMode = LookupConstants::LATEST_FROM_REPLICA |
||
) |
string | $cache | One 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) |
string | $lookupMode | One of the EntityRevisionLookup lookup mode constants TODO this should perhaps not refer to EntityRevisionLookup |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityPrefetcher | ( | ) |
Returns an EntityPrefetcher which can be used to prefetch a list of entity ids in case we need to for example load a batch of entity ids.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityRedirectLookup | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityRevisionLookup | ( | $cache = self::LOOKUP_CACHING_ENABLED | ) |
string | $cache | One 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) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityStore | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getEntityStoreWatcher | ( | ) |
Returns an EntityStoreWatcher that should be notified of changes to entities, in order to keep any caches updated.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getLabelConflictFinder | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getLegacyEntityTermStoreReader | ( | ) |
Use of this method represents cases that still need to be migrated away from using the legacy terms storage.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getLegacyEntityTermStoreWriter | ( | ) |
This method will result in having 0 calls post migration as the service used to write to the term store changes in WikibaseRepo::getItemTermStoreWriter and WikibaseRepo::getPropertyTermStoreWriter.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getPropertyInfoLookup | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getPropertyInfoStore | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getSiteLinkConflictLookup | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::getTermIndex | ( | ) |
Use of this method indicates cases that should be migrated away from the expectation that all of this functionality is provided by a single class.
Or that said thing needs to select one of the more specific services mentioned in the deprecated message.
@depreacted Use getLegacyEntityTermStoreReader, getLegacyEntityTermStoreWriter or getLabelConflictFinder directly.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::newItemsWithoutSitelinksFinder | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::newSiteLinkStore | ( | ) |
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
Wikibase\Repo\Store\Store::rebuild | ( | ) |
Rebuilds the store from the original data source.
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_DISABLED = 'uncached' |
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_ENABLED = '' |
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_RETRIEVE_ONLY = 'retrieve-only' |