Aggregators implements Countable, IteratorAggregate
Read onlyYes
FinalYes
Tags
Interfaces
- Countable
- IteratorAggregate
Methods
- __construct() : mixed
- count() : int
- first() : AggregatingFunction
- fresh() : self
- The same aggregators without state: withChildren(children()) builds each one anew.
- getIterator() : Traversable
- references() : null|array<int, Reference>
- resolved() : self
- Rebuilds every aggregator fresh - callers must bind before the first aggregate() call, or accumulated state is discarded.
Methods
__construct()
public
__construct(AggregatingFunction ...$aggregators) : mixed
Parameters
- $aggregators : AggregatingFunction
count()
public
count() : int
Return values
intfirst()
public
first() : AggregatingFunction
Return values
AggregatingFunctionfresh()
The same aggregators without state: withChildren(children()) builds each one anew.
public
fresh() : self
Return values
selfgetIterator()
public
getIterator() : Traversable
Return values
Traversablereferences()
public
references() : null|array<int, Reference>
Return values
null|array<int, Reference> —union of references read by all aggregators, or null when any aggregator cannot enumerate them (disables spill column pruning)
resolved()
Rebuilds every aggregator fresh - callers must bind before the first aggregate() call, or accumulated state is discarded.
public
resolved(Schema $schema) : self
Parameters
- $schema : Schema