AddRowIndexTransformer implements Stateful, Transformer
FinalYes
Interfaces
- Stateful
- Every run starts from a fresh instance; a parallel read never ships it to a worker.
- Transformer
Methods
- __construct() : mixed
- bind() : BoundStep<string|int, Transformer>
- describe() : null|Description
- fresh() : static
- A new instance in the state this one was constructed in.
- fromDescription() : static
- transform() : Rows
Methods
__construct()
public
__construct(string $indexColumn, StartFrom $startFrom) : mixed
Parameters
- $indexColumn : string
- $startFrom : StartFrom
bind()
public
bind(Schema $input) : BoundStep<string|int, Transformer>
Parameters
- $input : Schema
Return values
BoundStep<string|int, Transformer>describe()
public
describe() : null|Description
Return values
null|Description —null when this instance cannot cross a process boundary (a live client, a custom collaborator)
fresh()
A new instance in the state this one was constructed in.
public
fresh() : static
Return values
staticfromDescription()
public
static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
- $data : array<string|int, mixed>
- $rebuild : Rebuild
Return values
statictransform()
public
transform(Rows $rows, Backend $backend) : Rows