Sum implements AggregatingFunction, WindowFunction
FinalYes
Interfaces
Methods
- __construct() : mixed
- aggregate() : void
- apply() : mixed
- over() : WindowFunction
- result() : Entry<string|int, float|null>|Entry<string|int, int|null>
- toString() : string
- window() : Window
Methods
__construct()
public
__construct(Reference $ref) : mixed
Parameters
- $ref : Reference
aggregate()
public
aggregate(Row $row, FlowContext $context) : void
Parameters
- $row : Row
- $context : FlowContext
apply()
public
apply(Row $row, Rows $partition, FlowContext $context) : mixed
Parameters
- $row : Row
- $partition : Rows
- $context : FlowContext
over()
public
over(Window $window) : WindowFunction
Parameters
- $window : Window
Return values
WindowFunctionresult()
public
result(EntryFactory $entryFactory) : Entry<string|int, float|null>|Entry<string|int, int|null>
Parameters
- $entryFactory : EntryFactory
Return values
Entry<string|int, float|null>|Entry<string|int, int|null>toString()
public
toString() : string
Return values
stringwindow()
public
window() : Window