1 | <?php |
||
22 | class SamplerAggregation extends AbstractAggregation |
||
23 | { |
||
24 | use BucketingTrait; |
||
25 | |||
26 | /** |
||
27 | * Defines how many results will be received from each shard |
||
28 | * @param string $shardSize |
||
29 | */ |
||
30 | private $shardSize; |
||
31 | |||
32 | /** |
||
33 | * Inner aggregations container init. |
||
34 | * |
||
35 | * @param string $name |
||
36 | * @param string $field |
||
37 | * @param int $shardSize |
||
38 | */ |
||
39 | public function __construct($name, $field = null, $shardSize = null) |
||
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | public function getShardSize() |
||
54 | |||
55 | /** |
||
56 | * @param int $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() |
||
85 | } |
||
86 |