Flow PHP

DistinctProcessor implements Distributable

Read onlyYes
FinalYes

Interfaces

Distributable
Unlike a Transformer, receives the whole upstream generator, not one batch.

Properties

$columns  : array<string|int, mixed>
$input  : Schema|null

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
distribution()  : Distribution|null
Every split drops its own duplicates; the rows of one key meet in one process. null while unbound or when a column is missing from the input.
fromDescription()  : static
process()  : Generator<null|Signal, 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

distribution()

Every split drops its own duplicates; the rows of one key meet in one process. null while unbound or when a column is missing from the input.

public distribution() : Distribution|null
Return values
Distribution|null

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<string|int, Rows> $rows, Backend $backend) : Generator<null|Signal, void>
Parameters
$rows : Generator<string|int, Rows>
$backend : Backend
Return values
Generator<null|Signal, void>
On this page

Search results