You are here

protected function Basic::createSelectStatement in Search API 8

Creates a SELECT statement for this tracker.

Return value

\Drupal\Core\Database\Query\SelectInterface A SELECT statement.

3 calls to Basic::createSelectStatement()
Basic::createRemainingItemsStatement in src/Plugin/search_api/tracker/Basic.php
Creates a SELECT statement which filters on the not indexed items.
Basic::getIndexedItemsCount in src/Plugin/search_api/tracker/Basic.php
Retrieves the number of indexed items for this index.
Basic::getTotalItemsCount in src/Plugin/search_api/tracker/Basic.php
Retrieves the total number of items that are being tracked for this index.

File

src/Plugin/search_api/tracker/Basic.php, line 143

Class

Basic
Provides a tracker implementation which uses a FIFO-like processing order.

Namespace

Drupal\search_api\Plugin\search_api\tracker

Code

protected function createSelectStatement() {
  $select = $this
    ->getDatabaseConnection()
    ->select('search_api_item', 'sai');
  $select
    ->condition('index_id', $this
    ->getIndex()
    ->id());
  return $select;
}