CastingColumnBuilder implements ColumnBuilder
FinalYes
Interfaces
Methods
- __construct() : mixed
- append() : void
- A logical or raw value: Type::cast, then its physical form; null is validity 0, or ColumnMismatchException::valueDoesNotMatch() on a NOT NULL definition.
- appendFrom() : void
- Copies one physical cell, no materialisation.
- appendMany() : void
- appendPhysicals() : void
- Physical values exactly as Column::physicals() returns them - no cast, no conversion.
- appendTake() : void
- count() : int
- finish() : Column
Methods
__construct()
public
__construct(Definition<string|int, mixed> $definition, Physical $physical, PhpColumnBuilder $physicals) : mixed
Parameters
- $definition : Definition<string|int, mixed>
- $physical : Physical
- $physicals : PhpColumnBuilder
append()
A logical or raw value: Type::cast, then its physical form; null is validity 0, or ColumnMismatchException::valueDoesNotMatch() on a NOT NULL definition.
public
append(mixed $value) : void
Parameters
- $value : mixed
appendFrom()
Copies one physical cell, no materialisation.
public
appendFrom(Column $column, int $i) : void
Parameters
- $column : Column
- $i : int
appendMany()
public
appendMany(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
-
one cast loop per column - the bulk door
appendPhysicals()
Physical values exactly as Column::physicals() returns them - no cast, no conversion.
public
appendPhysicals(array<int, mixed> $physicals[, int|null $nullCount = null ]) : void
Parameters
- $physicals : array<int, mixed>
- $nullCount : int|null = null
-
exactly the nulls among $physicals when the caller counted them, null otherwise - a count that is not exact is undefined behaviour
Tags
appendTake()
public
appendTake(Column $column, array<string|int, mixed> $indices) : void
Parameters
- $column : Column
- $indices : array<string|int, mixed>
-
gathered physically from $column
count()
public
count() : int
Return values
intfinish()
public
finish() : Column