1 | <?php |
||
23 | class ScriptedMetricAggregation extends AbstractAggregation |
||
24 | { |
||
25 | use MetricTrait; |
||
26 | |||
27 | /** |
||
28 | * @var mixed |
||
29 | */ |
||
30 | private $initScript; |
||
31 | |||
32 | /** |
||
33 | * @var mixed |
||
34 | */ |
||
35 | private $mapScript; |
||
36 | |||
37 | /** |
||
38 | * @var mixed |
||
39 | */ |
||
40 | private $combineScript; |
||
41 | |||
42 | /** |
||
43 | * @var mixed |
||
44 | */ |
||
45 | private $reduceScript; |
||
46 | /** |
||
47 | * ScriptedMetricAggregation constructor. |
||
48 | * @param string $name |
||
49 | * @param mixed $initScript |
||
50 | * @param mixed $mapScript |
||
51 | * @param mixed $combineScript |
||
52 | * @param mixed $reduceScript |
||
53 | */ |
||
54 | public function __construct( |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getType() |
||
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function getInitScript() |
||
85 | |||
86 | /** |
||
87 | * @param mixed $initScript |
||
88 | */ |
||
89 | public function setInitScript($initScript) |
||
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getMapScript() |
||
101 | |||
102 | /** |
||
103 | * @param mixed $mapScript |
||
104 | */ |
||
105 | public function setMapScript($mapScript) |
||
109 | |||
110 | /** |
||
111 | * @return mixed |
||
112 | */ |
||
113 | public function getCombineScript() |
||
117 | |||
118 | /** |
||
119 | * @param mixed $combineScript |
||
120 | */ |
||
121 | public function setCombineScript($combineScript) |
||
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function getReduceScript() |
||
133 | |||
134 | /** |
||
135 | * @param mixed $reduceScript |
||
136 | */ |
||
137 | public function setReduceScript($reduceScript) |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function getArray() |
||
158 | } |
||
159 |