| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class SketchSummaryPostAggregator implements PostAggregatorInterface |
||
| 7 | { |
||
| 8 | protected string $outputName; |
||
| 9 | |||
| 10 | protected PostAggregatorInterface $dimension; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * QuantilePostAggregator constructor. |
||
| 14 | * |
||
| 15 | * @param PostAggregatorInterface $dimension Post aggregator that refers to a DoublesSketch (fieldAccess or |
||
| 16 | * another post aggregator) |
||
| 17 | * @param string $outputName The name as it will be used in our result. |
||
| 18 | */ |
||
| 19 | 1 | public function __construct(PostAggregatorInterface $dimension, string $outputName) |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return the aggregator as it can be used in a druid query. |
||
| 27 | * |
||
| 28 | * @return array<string,string|array<string,string|array<mixed>>> |
||
| 29 | */ |
||
| 30 | 1 | public function toArray(): array |
|
| 38 | } |