DremelShredder
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- shred() : array<string, WriteFlatColumnValues>
- shredColumns() : array<string, WriteFlatColumnValues>
Methods
__construct()
public
__construct(Validator $validator, DataConverter $dataConverter) : mixed
Parameters
- $validator : Validator
- $dataConverter : DataConverter
shred()
public
shred(Schema $schema, array<string|int, array<string|int, mixed>> $rows, int $firstRow) : array<string, WriteFlatColumnValues>
Parameters
- $schema : Schema
- $rows : array<string|int, array<string|int, mixed>>
- $firstRow : int
-
the writer's 0-based index of the first of $rows, which validation refusals name
Return values
array<string, WriteFlatColumnValues> —keyed by flatPath
shredColumns()
public
shredColumns(Schema $schema, array<string, array<int, mixed>> $columns, int $count, int $firstRow) : array<string, WriteFlatColumnValues>
Parameters
- $schema : Schema
- $columns : array<string, array<int, mixed>>
-
by top-level column name; a column the array lacks is nulls
- $count : int
-
rows in every list
- $firstRow : int
-
the writer's 0-based index of the first row, which validation refusals name
Return values
array<string, WriteFlatColumnValues> —keyed by flatPath