KeyEncoder
Read onlyYes
FinalYes
Equal keys exactly when ComparableValues::equality() holds; every value is type-tagged.
Methods
- __construct() : mixed
- of() : array<int, string>
Methods
__construct()
public
__construct(array<int, string> $columns[, array<int, Type<string|int, mixed>> $types = [] ][, null|Schema $declared = null ]) : mixed
Parameters
- $columns : array<int, string>
- $types : array<int, Type<string|int, mixed>> = []
-
by position: the type a column is cast to before it is tagged
- $declared : null|Schema = null
-
the bound schema of the batches, when the caller has one
of()
public
of(Rows $rows) : array<int, string>
Parameters
- $rows : Rows
Return values
array<int, string> —one key per row