Flow PHP

FileLoader extends Loader

Methods

commit()  : FileCommit|null
The job commit of this write as $tasks tasks of run $run; null when the save mode does not admit the destination.
describe()  : null|Description
destination()  : Path
fromDescription()  : static
inTask()  : static
A new loader, every setting copied, writing as task $task of a job that commits it; this instance is untouched.
load()  : void
partitionBy()  : static
partitioning()  : Partitioning
What partitionBy() set; Partitioning::none() by default.
saveMode()  : static

Methods

commit()

The job commit of this write as $tasks tasks of run $run; null when the save mode does not admit the destination.

public commit(non-empty-string $run, int<1, max> $tasks) : FileCommit|null
Parameters
$run : non-empty-string
$tasks : int<1, max>
Tags
throws
RuntimeException
Return values
FileCommit|null

describe()

public describe() : null|Description
Return values
null|Description —

null when this instance cannot cross a process boundary (a live client, a custom collaborator)

destination()

public destination() : Path
Return values
Path

fromDescription()

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

inTask()

A new loader, every setting copied, writing as task $task of a job that commits it; this instance is untouched.

public inTask(Part $task) : static
Parameters
$task : Part
Return values
static
On this page

Search results