Flow PHP

ColumnBuilder

Methods

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

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<int, mixed> $values) : void
Parameters
$values : array<int, mixed>

one cast loop per column - the bulk door

Tags
throws
SchemaMismatchException

at the first refused value, its row the value's position in $values

appendPhysicals()

Physical values exactly as Column::physicals() returns them - no cast, no conversion.

public appendPhysicals(array<int, mixed> $physicals[, null|int $nullCount = null ]) : void
Parameters
$physicals : array<int, mixed>
$nullCount : null|int = null

exactly the nulls among $physicals when the caller counted them, null otherwise - a count that is not exact is undefined behaviour

Tags
throws
SchemaMismatchException

at the first null under a NOT NULL definition

InvalidArgumentException

for a physical of another kind than the definition's (a string in an integer column, an int in a float column); nothing is appended

appendTake()

public appendTake(Column $column, array<int, int> $indices) : void
Parameters
$column : Column
$indices : array<int, int>

gathered physically from $column

On this page

Search results