InMemoryRows implements SchemaSampler
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- samples() : iterable<int, iterable<int, RawRowValues>>
- One inner iterable, because the sampled unit is one SOURCE - the same choice a CSV reader makes when it yields one iterable per listed file rather than per byte range.
- values() : Generator<int, RawRowValues>
- The same ColumnName normalisation array_to_rows() applies, so the fold's names are the hydrator's names.
Methods
__construct()
public
__construct(iterable<string|int, array<string|int, mixed>> $rows) : mixed
Parameters
- $rows : iterable<string|int, array<string|int, mixed>>
samples()
One inner iterable, because the sampled unit is one SOURCE - the same choice a CSV reader makes when it yields one iterable per listed file rather than per byte range.
public
samples(int $rowBudget) : iterable<int, iterable<int, RawRowValues>>
$rowBudget is never rationed: the inner generator is lazy and SchemaInferrer stops advancing it when the budget is spent.
Parameters
- $rowBudget : int
Return values
iterable<int, iterable<int, RawRowValues>>values()
The same ColumnName normalisation array_to_rows() applies, so the fold's names are the hydrator's names.
public
values() : Generator<int, RawRowValues>