mini\Table\Index\SortedArrayIndex final class

Documentation

Simple hash + lazy sorted array for range queries.

Best for bulk builds (fromGenerator/fromArray) where data is loaded once. For dynamic insert-heavy workloads, use LsmIndex instead.

Inheritance

Implements: mini\Table\Index\IndexInterface mini\Table\Index\HashIndexInterface

Properties (2)

private array $hash
private ?array $sorted

Methods (12)

Build index from a generator function.

Build index from array of [key, rowId] pairs.

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Table/Index/SortedArrayIndex.php:13-175