| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class CdfPostAggregator implements PostAggregatorInterface |
||
| 7 | { |
||
| 8 | protected string $outputName; |
||
| 9 | |||
| 10 | protected PostAggregatorInterface $dimension; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var float[] |
||
| 14 | */ |
||
| 15 | protected array $splitPoints; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * QuantilePostAggregator constructor. |
||
| 19 | * |
||
| 20 | * @param PostAggregatorInterface $dimension Post aggregator that refers to a DoublesSketch (fieldAccess or |
||
| 21 | * another post aggregator) |
||
| 22 | * @param string $outputName The name as it will be used in our result. |
||
| 23 | * @param float[] $splitPoints Array of split points |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(PostAggregatorInterface $dimension, string $outputName, array $splitPoints) |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Return the aggregator as it can be used in a druid query. |
||
| 34 | * |
||
| 35 | * @return array<string,string|float[]|array<string,string|array<mixed>>> |
||
| 36 | */ |
||
| 37 | 1 | public function toArray(): array |
|
| 46 | } |