Flow PHP

FileColumns

Read onlyYes
FinalYes

Methods

__construct()  : mixed
declare()  : Schema
forFile()  : FileConstants
fromArray()  : self
normalize()  : array{partition_names: array, partition_types: array>, metadata_columns: bool}
partitions()  : Schema
partitionValue()  : mixed
$value as $definition types it: kept when it matches, cast otherwise; a missing or null value is NULL.
tail()  : array<int, string>
withoutTail()  : Schema

Methods

__construct()

public __construct(array<string, bool> $partitionNames, PartitionTypes $partitionTypes, bool $metadataColumns) : mixed
Parameters
$partitionNames : array<string, bool>
$partitionTypes : PartitionTypes
$metadataColumns : bool

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>

the shape of normalize()

Return values
self

normalize()

public normalize() : array{partition_names: array, partition_types: array>, metadata_columns: bool}
Return values
array{partition_names: array, partition_types: array>, metadata_columns: bool}

partitionValue()

$value as $definition types it: kept when it matches, cast otherwise; a missing or null value is NULL.

public static partitionValue(Definition $definition, string $name, string|null $value, Path $file) : mixed
Parameters
$definition : Definition
$name : string
$value : string|null
$file : Path
Tags
throws
InvalidArgumentException

when $value cannot be cast to $definition's type

tail()

public tail() : array<int, string>
Return values
array<int, string>
On this page

Search results