FloeWriter
FinalYes
Methods
- __construct() : mixed
- append() : void
- close() : void
- create() : void
- createForStream() : void
- write() : void
Methods
__construct()
public
__construct(Filesystem $filesystem, Schema $schema[, Options $options = new Options() ][, null|Hydrator $hydrator = null ][, FloeEngine $engine = FloeEngine::adaptive ]) : mixed
Parameters
- $filesystem : Filesystem
- $schema : Schema
-
fixes the session schema for the writer's life
- $options : Options = new Options()
- $hydrator : null|Hydrator = null
-
null uses the adaptive hydrator
- $engine : FloeEngine = FloeEngine::adaptive
Tags
append()
public
append(Path $path[, Metadata|null $metadata = null ]) : void
Parameters
- $path : Path
- $metadata : Metadata|null = null
-
merged over the existing footer metadata, new keys win
Tags
close()
public
close() : void
Tags
create()
public
create(Path $path[, Metadata|null $metadata = null ]) : void
Parameters
- $path : Path
- $metadata : Metadata|null = null
-
stored in the footer
Tags
createForStream()
public
createForStream(DestinationStream $stream[, Metadata|null $metadata = null ]) : void
Parameters
- $stream : DestinationStream
- $metadata : Metadata|null = null
-
stored in the footer
Tags
write()
public
write(Rows $rows) : void
Parameters
- $rows : Rows