mini\Table\Index\BTreeIndex::fromGenerator() Method

public static

Signature

public static function fromGenerator(string $path, Closure $fn): self

Parameters

Name Type Default Description
$path string required Documentation missing
$fn Closure required Documentation missing

Returns

self

Documentation

Build index from a generator function.

Generator should yield [string $key, int $rowId] pairs. Uses bulk loading for efficient tree construction.

Source

src/Table/Index/BTreeIndex.php:833-844