Wikibase
MediaWiki Wikibase extension
|
Provides access to settings relevant for services in the data access component. More...
Public Member Functions | |
__construct (int $maxSerializedEntitySizeInKiloBytes, bool $useSearchFields, bool $forceWriteSearchFields, bool $useNormalizedPropertyTerms, array $itemTermsMigrationStages, int $itemSearchMigrationStage=MIGRATION_OLD, int $propertySearchMigrationStage=MIGRATION_OLD) | |
maxSerializedEntitySizeInBytes () | |
useSearchFields () | |
forceWriteSearchFields () | |
useNormalizedPropertyTerms () | |
Whether to read property terms from the new, normalized schema, rather than from the old wb_terms table. | |
useNormalizedItemTerms (int $numericItemId) | |
Whether to read item terms from the new, normalized schema, rather than from the old wb_terms table. | |
getItemTermsMigrationStages () | |
itemSearchMigrationStage () | |
propertySearchMigrationStage () | |
Public Attributes | |
const | PROPERTY_TERMS_NORMALIZED = true |
const | PROPERTY_TERMS_UNNORMALIZED = false |
const | ITEM_TERMS_UNNORMALIZED_STAGE_ONLY = [ 'max' => MIGRATION_OLD ] |
Provides access to settings relevant for services in the data access component.
Wikibase\DataAccess\DataAccessSettings::__construct | ( | int | $maxSerializedEntitySizeInKiloBytes, |
bool | $useSearchFields, | ||
bool | $forceWriteSearchFields, | ||
bool | $useNormalizedPropertyTerms, | ||
array | $itemTermsMigrationStages, | ||
int | $itemSearchMigrationStage = MIGRATION_OLD , |
||
int | $propertySearchMigrationStage = MIGRATION_OLD |
||
) |
int | $maxSerializedEntitySizeInKiloBytes | |
bool | $useSearchFields | |
bool | $forceWriteSearchFields | |
bool | $useNormalizedPropertyTerms | TODO: Temporary until we get rid of wb_terms |
array | $itemTermsMigrationStages | TODO: Temporary until we get rid of wb_terms |
int | $itemSearchMigrationStage | TODO: Temporary until we get rid of wb_terms |
int | $propertySearchMigrationStage | TODO: Temporary until we get rid of wb_terms |
Wikibase\DataAccess\DataAccessSettings::forceWriteSearchFields | ( | ) |
Wikibase\DataAccess\DataAccessSettings::getItemTermsMigrationStages | ( | ) |
Wikibase\DataAccess\DataAccessSettings::itemSearchMigrationStage | ( | ) |
Wikibase\DataAccess\DataAccessSettings::maxSerializedEntitySizeInBytes | ( | ) |
Wikibase\DataAccess\DataAccessSettings::propertySearchMigrationStage | ( | ) |
Wikibase\DataAccess\DataAccessSettings::useNormalizedItemTerms | ( | int | $numericItemId | ) |
Whether to read item terms from the new, normalized schema, rather than from the old wb_terms table.
The new schema is accessed through classes like DatabaseItemTermStoreWriter
and PrefetchingItemTermLookup
, the old one through classes like TermSqlIndex
and BufferingTermIndexTermLookup
.
During migraiton of item terms, we have different stages on for different, subsequent ranges of item ids. That is why this method takes a numeric entity id.
Wikibase\DataAccess\DataAccessSettings::useNormalizedPropertyTerms | ( | ) |
Whether to read property terms from the new, normalized schema, rather than from the old wb_terms table.
The new schema is accessed through classes like DatabasePropertyTermStoreWriter
and PrefetchingPropertyTermLookup
, the old one through classes like TermSqlIndex
and BufferingTermIndexTermLookup
.
This is a temporary setting used during the transition period. Eventually, the normalized schema will be the only one supported.
Wikibase\DataAccess\DataAccessSettings::useSearchFields | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
const Wikibase\DataAccess\DataAccessSettings::ITEM_TERMS_UNNORMALIZED_STAGE_ONLY = [ 'max' => MIGRATION_OLD ] |
const Wikibase\DataAccess\DataAccessSettings::PROPERTY_TERMS_NORMALIZED = true |
const Wikibase\DataAccess\DataAccessSettings::PROPERTY_TERMS_UNNORMALIZED = false |