mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 04:57:15 +01:00
33 lines
706 B
PHP
33 lines
706 B
PHP
|
<?php
|
||
|
|
||
|
namespace Xentral\Modules\SuperSearch\SearchIndex\Provider;
|
||
|
|
||
|
use Xentral\Modules\SuperSearch\SearchIndex\Collection\ItemFormatterCollection;
|
||
|
|
||
|
interface BulkIndexProviderInterface extends SearchIndexProviderInterface
|
||
|
{
|
||
|
/**
|
||
|
* Returns a range of the index items
|
||
|
*
|
||
|
* @param int $start
|
||
|
* @param int $limit
|
||
|
*
|
||
|
* @return ItemFormatterCollection
|
||
|
*/
|
||
|
public function getBulkItems($start, $limit);
|
||
|
|
||
|
/**
|
||
|
* Returns the number of items to process in one transaction
|
||
|
*
|
||
|
* @return int
|
||
|
*/
|
||
|
public function getBulkSize();
|
||
|
|
||
|
/**
|
||
|
* Returns the total count for all items
|
||
|
*
|
||
|
* @return int
|
||
|
*/
|
||
|
public function getTotalCount();
|
||
|
}
|