Wikibase
MediaWiki Wikibase extension
|
Implementation of the store interface using an SQL backend via MediaWiki's storage abstraction layer. More...
Public Member Functions | |
__construct (EntityChangeFactory $entityChangeFactory, EntityIdParser $entityIdParser, EntityIdComposer $entityIdComposer, EntityIdLookup $entityIdLookup, EntityTitleStoreLookup $entityTitleLookup, EntityNamespaceLookup $entityNamespaceLookup, IdGenerator $idGenerator, WikibaseServices $wikibaseServices, EntitySource $entitySource) | |
getTermIndex () | |
getLegacyEntityTermStoreReader () | |
getLegacyEntityTermStoreWriter () | |
getLabelConflictFinder () | |
clear () | |
Removes all data from the store. | |
rebuild () | |
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 () | |
getSiteLinkConflictLookup () | |
getEntityPrefetcher () | |
getEntityChangeLookup () | |
getChangeStore () | |
Private Member Functions | |
newTermIndex () | |
newEntityStore () | |
getEntityRevisionLookupCacheKey () | |
getCacheRetrievingEntityRevisionLookup () | |
newPropertyInfoLookup () | |
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 = null | |
$propertyInfoStore = null | |
$propertyInfoTable = null | |
$termIndex = null | |
$entityPrefetcher = null | |
$entityIdLookup | |
$entityTitleLookup | |
$entityNamespaceLookup | |
$wikibaseServices | |
$cacheKeyPrefix | |
$cacheKeyGroup | |
$cacheType | |
$cacheDuration | |
$idGenerator | |
$useSearchFields | |
$forceWriteSearchFields | |
$entitySource | |
$dataAccessSettings | |
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' |
Implementation of the store interface using an SQL backend via MediaWiki's storage abstraction layer.
Wikibase\Repo\Store\Sql\SqlStore::__construct | ( | EntityChangeFactory | $entityChangeFactory, |
EntityIdParser | $entityIdParser, | ||
EntityIdComposer | $entityIdComposer, | ||
EntityIdLookup | $entityIdLookup, | ||
EntityTitleStoreLookup | $entityTitleLookup, | ||
EntityNamespaceLookup | $entityNamespaceLookup, | ||
IdGenerator | $idGenerator, | ||
WikibaseServices | $wikibaseServices, | ||
EntitySource | $entitySource | ||
) |
EntityChangeFactory | $entityChangeFactory | |
EntityIdParser | $entityIdParser | |
EntityIdComposer | $entityIdComposer | |
EntityIdLookup | $entityIdLookup | |
EntityTitleStoreLookup | $entityTitleLookup | |
EntityNamespaceLookup | $entityNamespaceLookup | |
IdGenerator | $idGenerator | |
WikibaseServices | $wikibaseServices | Service container providing data access services |
EntitySource | $entitySource |
Wikibase\Repo\Store\Sql\SqlStore::clear | ( | ) |
Removes all data from the store.
Implements Wikibase\Repo\Store\Store.
|
private |
Wikibase\Repo\Store\Sql\SqlStore::getChangeStore | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getEntityByLinkedTitleLookup | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getEntityChangeLookup | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getEntityLookup | ( | $cache = self::LOOKUP_CACHING_ENABLED , |
|
string | $lookupMode = LookupConstants::LATEST_FROM_REPLICA |
||
) |
The EntityLookup returned by this method will resolve redirects.
string | $cache | One of self::LOOKUP_CACHING_* |
string | $lookupMode | One of LookupConstants::LATEST_FROM_* |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getEntityPrefetcher | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getEntityRedirectLookup | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::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) |
Implements Wikibase\Repo\Store\Store.
|
private |
Wikibase\Repo\Store\Sql\SqlStore::getEntityStore | ( | ) |
Wikibase\Repo\Store\Sql\SqlStore::getEntityStoreWatcher | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getLabelConflictFinder | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getLegacyEntityTermStoreReader | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getLegacyEntityTermStoreWriter | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getPropertyInfoLookup | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getPropertyInfoStore | ( | ) |
|
private |
Wikibase\Repo\Store\Sql\SqlStore::getSiteLinkConflictLookup | ( | ) |
Implements Wikibase\Repo\Store\Store.
Wikibase\Repo\Store\Sql\SqlStore::getTermIndex | ( | ) |
If you need a TermIndex implementation for a EntityHandler, when the entity handler doesn't do anything with the TermIndex please use a NulLTermIndex.
@depreacted Use getLegacyEntityTermStoreReader, getLegacyEntityTermStoreWriter or getLabelConflictFinder directly.
Implements Wikibase\Repo\Store\Store.
|
private |
|
private |
Wikibase\Repo\Store\Sql\SqlStore::newItemsWithoutSitelinksFinder | ( | ) |
Implements Wikibase\Repo\Store\Store.
|
private |
|
private |
Creates a new PropertyInfoStore Note: cache key used by the lookup should be the same as the cache key used by CachedPropertyInfoLookup.
Wikibase\Repo\Store\Sql\SqlStore::newSiteLinkStore | ( | ) |
|
private |
Wikibase\Repo\Store\Sql\SqlStore::rebuild | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |