FloeStreamReader
FinalYes
Methods
- __construct() : mixed
- close() : void
- footer() : Footer
- metadata() : Metadata
- rows() : Generator<int, Rows>
- offset skips whole leading sections using the footer, then the remaining rows inside the start section; limit stops the read after that many rows. Batches are frame-sized: batchSize is an upper bound, a batch never spans two BATCH frames.
- schema() : Schema
- totalRows() : int
Methods
__construct()
public
__construct(SourceStream $source, Codec $codec, int $chunkSize, Backend $backend) : mixed
Parameters
Tags
close()
public
close() : void
footer()
public
footer() : Footer
Tags
Return values
Footermetadata()
public
metadata() : Metadata
Tags
Return values
Metadatarows()
offset skips whole leading sections using the footer, then the remaining rows inside the start section; limit stops the read after that many rows. Batches are frame-sized: batchSize is an upper bound, a batch never spans two BATCH frames.
public
rows([int<1, max> $batchSize = 1000 ][, int $offset = 0 ][, int|null $limit = null ]) : Generator<int, Rows>
Parameters
- $batchSize : int<1, max> = 1000
- $offset : int = 0
- $limit : int|null = null
Tags
Return values
Generator<int, Rows> —every batch carries the merged file schema
schema()
public
schema() : Schema
Tags
Return values
SchematotalRows()
public
totalRows() : int