FileWrite
FinalYes
Methods
- __construct() : mixed
- A serial write ($task null) is the whole job: it admits the write now and commits it at closure(). A shipped task only stages its files; the job that shipped it commits them.
- closure() : void
- Closes every writer - the first close failure rethrown once all were closed - then commits a serial write.
- discard() : void
- Closes every writer, then aborts the write whatever a close threw.
- write() : void
Methods
__construct()
A serial write ($task null) is the whole job: it admits the write now and commits it at closure(). A shipped task only stages its files; the job that shipped it commits them.
public
__construct(Filesystem $filesystem, Path $path, SaveMode $saveMode, PartitionRouter $router, FileWriterFactory $writers[, Part|null $task = null ]) : mixed
Parameters
- $filesystem : Filesystem
- $path : Path
- $saveMode : SaveMode
- $router : PartitionRouter
- $writers : FileWriterFactory
- $task : Part|null = null
Tags
closure()
Closes every writer - the first close failure rethrown once all were closed - then commits a serial write.
public
closure() : void
Tags
discard()
Closes every writer, then aborts the write whatever a close threw.
public
discard() : void
Tags
write()
public
write(Rows $rows, Backend $backend) : void