1 | <?php |
||
16 | class SamplerAggregation extends AbstractAggregation |
||
17 | { |
||
18 | use BucketingTrait; |
||
19 | |||
20 | /** |
||
21 | * Defines how many results will be received from each shard |
||
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 | */ |
||
33 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function getShardSize() |
||
51 | |||
52 | /** |
||
53 | * @param mixed $shardSize |
||
54 | */ |
||
55 | public function setShardSize($shardSize) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getType() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function getArray() |
||
84 | } |
||
85 |