Flow PHP

FloeFileWriterFactory implements FileWriterFactory

FinalYes

Interfaces

FileWriterFactory

Methods

__construct()  : mixed
writer()  : FileWriter
The writer of one stream under the run's schema - the declared one, or the first opened stream's.

Methods

__construct()

public __construct(null|Schema $declared, Metadata|null $metadata, Options $options) : mixed
Parameters
$declared : null|Schema

the schema every file is written under, partition columns removed; null to take the first written batch's schema

$metadata : Metadata|null
$options : Options

writer()

The writer of one stream under the run's schema - the declared one, or the first opened stream's.

public writer(DestinationStream $stream, Schema $schema, Backend $backend) : FileWriter
Parameters
$stream : DestinationStream
$schema : Schema

the schema of the stream's first batch

$backend : Backend

the configured backend of the write

Return values
FileWriter
On this page

Search results