1 | <?php |
||
16 | class SamplerAggregation extends AbstractAggregation |
||
17 | { |
||
18 | use BucketingTrait; |
||
19 | |||
20 | /** |
||
21 | * Defines how many |
||
22 | * @param string $shardSize |
||
23 | */ |
||
24 | private $shardSize; |
||
25 | |||
26 | /** |
||
27 | * Inner aggregations container init. |
||
28 | * |
||
29 | * @param string $name |
||
30 | * @param string $field |
||
31 | * @param int $shardSize |
||
32 | * @param array $parameters |
||
33 | */ |
||
34 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function getShardSize() |
||
54 | |||
55 | /** |
||
56 | * @param mixed $shardSize |
||
57 | */ |
||
58 | public function setShardSize($shardSize) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getType() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getArray() |
||
87 | } |