Clears search-related fields in the SQL terms table.
More...
Clears search-related fields in the SQL terms table.
- Copyright
- GPL-2.0-or-later
- Author
- Lucas Werkmeister
◆ __construct()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::__construct |
( |
ILBFactory |
$loadBalancerFactory, |
|
|
|
$sleep = 0 |
|
) |
| |
- Parameters
-
ILBFactory | $loadBalancerFactory | |
int | $sleep | Sleep time between each batch |
◆ clear()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::clear |
( |
| ) |
|
◆ clearBatch()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::clearBatch |
( |
IDatabase |
$dbr, |
|
|
IDatabase |
$dbw, |
|
|
|
$fromId, |
|
|
|
$batchSize |
|
) |
| |
- Parameters
-
IDatabase | $dbr | database connection for reading |
IDatabase | $dbw | database connection for writing |
int | $fromId | start with this row ID |
int | $batchSize | clear up to this many rows |
- Returns
- int|bool the last row ID processed, or false if there were no rows left to clear
◆ setBatchSize()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::setBatchSize |
( |
|
$size | ) |
|
◆ setClearTermWeight()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::setClearTermWeight |
( |
|
$clearTermWeight | ) |
|
◆ setErrorReporter()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::setErrorReporter |
( |
MessageReporter |
$reporter | ) |
|
◆ setFromId()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::setFromId |
( |
|
$fromId | ) |
|
◆ setProgressReporter()
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::setProgressReporter |
( |
MessageReporter |
$reporter | ) |
|
◆ $batchSize
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$batchSize = 1000 |
|
private |
◆ $clearTermWeight
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$clearTermWeight = true |
|
private |
◆ $errorReporter
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$errorReporter |
|
private |
◆ $fromId
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$fromId = null |
|
private |
◆ $loadBalancerFactory
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$loadBalancerFactory |
|
private |
◆ $progressReporter
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$progressReporter |
|
private |
◆ $sleep
Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::$sleep |
|
private |
◆ TABLE_NAME
const Wikibase\Repo\Store\Sql\TermSqlIndexSearchFieldsClearer::TABLE_NAME = 'wb_terms' |
The documentation for this class was generated from the following file: