1 | <?php |
||
23 | class CardinalityAggregation extends AbstractAggregation |
||
24 | { |
||
25 | use MetricTrait; |
||
26 | use ScriptAwareTrait; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $precisionThreshold; |
||
32 | |||
33 | /** |
||
34 | * @var bool |
||
35 | */ |
||
36 | private $rehash; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getArray() |
||
59 | |||
60 | /** |
||
61 | * Precision threshold. |
||
62 | * |
||
63 | * @param int $precision Precision Threshold. |
||
64 | */ |
||
65 | public function setPrecisionThreshold($precision) |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getPrecisionThreshold() |
||
77 | |||
78 | /** |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function isRehash() |
||
85 | |||
86 | /** |
||
87 | * @param bool $rehash |
||
88 | */ |
||
89 | public function setRehash($rehash) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function getType() |
||
101 | |||
102 | /** |
||
103 | * Checks if required fields are set. |
||
104 | * |
||
105 | * @param array $fields |
||
106 | * |
||
107 | * @throws \LogicException |
||
108 | */ |
||
109 | private function checkRequiredFields($fields) |
||
115 | } |
||
116 |