Flow PHP

CSVFileBatches implements FileBatches

Read onlyYes
FinalYes

Interfaces

FileBatches

Methods

__construct()  : mixed
batches()  : Generator<mixed, void>
The columns of every file must be the ones the inferred schema was derived from - the opener checks them before the file's first batch is built, so a cell the inferred types refuse cannot hide a file whose columns diverge.
close()  : void
describe()  : Description|null
fromDescription()  : static

Methods

__construct()

public __construct(CSVSourceOpener $opener, InferredColumns|null $inferred[, null|SchemaInference $inference = null ]) : mixed
Parameters
$opener : CSVSourceOpener
$inferred : InferredColumns|null
$inference : null|SchemaInference = null

the inference that made the schema; null when it was declared

batches()

The columns of every file must be the ones the inferred schema was derived from - the opener checks them before the file's first batch is built, so a cell the inferred types refuse cannot hide a file whose columns diverge.

public batches(FileRead $read, Criteria $criteria, SourceFile $source, Schema $body, Backend $backend, ReadWindow $window) : Generator<mixed, void>

A split reads only its byte window of the file.

Parameters
$read : FileRead
$criteria : Criteria
$source : SourceFile
$body : Schema
$backend : Backend
$window : ReadWindow
Tags
throws
InferredSchemaException|SchemaValidationException
Return values
Generator<mixed, void>

describe()

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

fromDescription()

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

Search results