Flow PHP

Expansion

Read onlyYes
FinalYes

Methods

elements()  : Rows
$gathered - the rows of output positions [$offset, $offset + count) - with the synthesized columns appended.
of()  : self|null
Null only when the tree holds no expand. A root expand is rewritten too: its root becomes the synthesized reference, so a root, a nested and an unpacked expand are one shape.
positions()  : array{list, array}
The expand operands evaluated once: for every output position the row it comes from, and one cell per synthesized column - zipped to the longest list, the shorter ones padded with null.
returns()  : Type<string|int, mixed>
root()  : ScalarFunction
The tree with every expand replaced by the synthesized column it reads its element from.
synthesized()  : Schema

Methods

elements()

$gathered - the rows of output positions [$offset, $offset + count) - with the synthesized columns appended.

public elements(Rows $gathered, array<string, array<int, mixed>> $cells, int $offset, Backend $backend) : Rows
Parameters
$gathered : Rows
$cells : array<string, array<int, mixed>>

from positions()

$offset : int
$backend : Backend
Return values
Rows

of()

Null only when the tree holds no expand. A root expand is rewritten too: its root becomes the synthesized reference, so a root, a nested and an unpacked expand are one shape.

public static of(ScalarFunction $resolved, Schema $input) : self|null
Parameters
$resolved : ScalarFunction
$input : Schema
Return values
self|null

positions()

The expand operands evaluated once: for every output position the row it comes from, and one cell per synthesized column - zipped to the longest list, the shorter ones padded with null.

public positions(Rows $rows, Backend $backend) : array{list, array}
Parameters
$rows : Rows
$backend : Backend
Return values
array{list, array} —

[$sources, $cells]

returns()

public returns() : Type<string|int, mixed>
Return values
Type<string|int, mixed>
On this page

Search results