ScalarFunctionTransformer implements Transformer, SpanAttributes
Read onlyYes
FinalYes
Interfaces
Properties
Methods
- __construct() : mixed
- bind() : BoundStep<string|int, Transformer>
- columnName() : string
- describe() : null|Description
- fromDescription() : static
- spanAttributes() : array<string, bool|float|int|string>
- transform() : Rows
Properties
$function
public
ScalarFunction
$function
Methods
__construct()
public
__construct(Definition<string|int, mixed>|string $column, ScalarFunction $function[, null|ScalarFunction $resolved = null ][, null|Definition<string|int, mixed> $derived = null ][, null|Schema $output = null ][, null|Schema $declared = null ]) : mixed
Parameters
- $column : Definition<string|int, mixed>|string
- $function : ScalarFunction
- $resolved : null|ScalarFunction = null
-
the function resolved against the bound schema
- $derived : null|Definition<string|int, mixed> = null
-
the column this step declares
- $output : null|Schema = null
-
the schema this step declares
- $declared : null|Schema = null
-
the columns an unpack declares, before the prefix
bind()
public
bind(Schema $input) : BoundStep<string|int, Transformer>
Parameters
- $input : Schema
Return values
BoundStep<string|int, Transformer>columnName()
public
columnName() : string
Return values
stringdescribe()
public
describe() : null|Description
Return values
null|Description —null when this instance cannot cross a process boundary (a live client, a custom collaborator)
fromDescription()
public
static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
- $data : array<string|int, mixed>
- $rebuild : Rebuild
Return values
staticspanAttributes()
public
spanAttributes() : array<string, bool|float|int|string>
Return values
array<string, bool|float|int|string>transform()
public
transform(Rows $rows, Backend $backend) : Rows