BoundExpansion
Read onlyYes
FinalYes
Properties
- $expansion : Expansion
- $gathered : array<string|int, mixed>
- $inner : Transformer
- $input : Schema
- $output : Schema
Methods
- __construct() : mixed
- chunks() : Generator<int, Rows>
- Output batches of at most $batchSize rows, built one at a time.
- of() : self
Properties
$expansion
public
Expansion
$expansion
$gathered
public
array<string|int, mixed>
$gathered
$inner
public
Transformer
$inner
$input
public
Schema
$input
$output
public
Schema
$output
Methods
__construct()
public
__construct(Expansion $expansion, Transformer $inner, Schema $output, array<int, string> $gathered, Schema $input) : mixed
Parameters
- $expansion : Expansion
- $inner : Transformer
- $output : Schema
- $gathered : array<int, string>
-
input columns copied into every element row, in input order
- $input : Schema
-
the schema the expansion was bound to
chunks()
Output batches of at most $batchSize rows, built one at a time.
public
chunks(Rows $rows, Backend $backend, int<1, max> $batchSize) : Generator<int, Rows>
Parameters
Return values
Generator<int, Rows>of()
public
static of(Definition<string|int, mixed>|string $column, ScalarFunction $function, RequiredColumns $carries, Schema $input) : self
Parameters
- $column : Definition<string|int, mixed>|string
- $function : ScalarFunction
- $carries : RequiredColumns
- $input : Schema