Flow PHP

RowsBuffer

FinalYes

Accumulates rows and releases them as size-bounded Rows batches.

Methods

__construct()  : mixed
add()  : Rows|null
flush()  : Rows|null

Methods

__construct()

public __construct(Schema $schema, int<1, max> $size[, null|callable(Schema, array<int, Row>): Rows $batch = null ]) : mixed
Parameters
$schema : Schema
$size : int<1, max>
$batch : null|callable(Schema, array<int, Row>): Rows = null

builds each released batch - Rows::trusted(...) or Rows::conformed(...) for rows that already passed the gate; null checks every row through new Rows()

On this page

Search results