Flow PHP

ExternalSort

Read onlyYes
FinalYes

With a limit, every run and merge stops at $limit rows.

Properties

$batchSize  : BatchSize
$columns  : array<string|int, mixed>
$memoryLimit  : Unit
$merge  : Buckets
$mergeFanIn  : int
$spill  : Buckets

Methods

__construct()  : mixed
firstRows()  : Generator<string|int, Rows>
of()  : self
reduce()  : BucketRun
sort()  : Generator<string|int, Rows>
sorted()  : Rows
spill()  : BucketRun

Properties

Methods

firstRows()

public firstRows(Generator<string|int, Rows> $batches, null|int $limit) : Generator<string|int, Rows>
Parameters
$batches : Generator<string|int, Rows>
$limit : null|int
Return values
Generator<string|int, Rows>

sort()

public sort(Generator<string|int, Rows> $rows, Backend $backend[, null|int $limit = null ]) : Generator<string|int, Rows>
Parameters
$rows : Generator<string|int, Rows>
$backend : Backend
$limit : null|int = null
Return values
Generator<string|int, Rows>
On this page

Search results