Flow PHP

OffsetProcessor implements Processor, Stateful

Read onlyYes
FinalYes

Skips the first N rows.

Interfaces

Processor
Unlike a Transformer, receives the whole upstream generator, not one batch.
Stateful
Every run starts from a fresh instance; a parallel read never ships it to a worker.

Properties

$offset  : int

Methods

__construct()  : mixed
bind()  : BoundStep<string|int, Processor>
breaks()  : bool
True when process() needs every input row before it emits one: the processor ends its pipeline.
describe()  : null|Description
fresh()  : static
A new instance in the state this one was constructed in.
fromDescription()  : static
process()  : Generator<Signal|null, void>
Process a stream of Rows and return a new stream.

Properties

Methods

breaks()

True when process() needs every input row before it emits one: the processor ends its pipeline.

public breaks() : bool
Return values
bool

fresh()

A new instance in the state this one was constructed in.

public fresh() : static
Return values
static

fromDescription()

public static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
$data : array<string|int, mixed>
$rebuild : Rebuild
Return values
static

process()

Process a stream of Rows and return a new stream.

public process(Generator<int, Rows> $rows, Backend $backend) : Generator<Signal|null, void>
Parameters
$rows : Generator<int, Rows>
$backend : Backend
Return values
Generator<Signal|null, void>
On this page

Search results