1 | <?php |
||
20 | class DocumentIterator extends AbstractResultsIterator |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $aggregations; |
||
|
|||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $inner_hits; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function __construct(array $rawData, Manager $manager, array $scroll = []) |
||
50 | |||
51 | /** |
||
52 | * Returns aggregations. |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getAggregations() |
||
66 | |||
67 | /** |
||
68 | * Get a specific aggregation by name. It fetches from the top level only. |
||
69 | * |
||
70 | * @param string $name |
||
71 | * |
||
72 | * @return AggregationValue|null |
||
73 | */ |
||
74 | public function getAggregation($name) |
||
82 | |||
83 | /** |
||
84 | * Returns inner hits for all objects |
||
85 | * |
||
86 | * @return InnerHitValue[] |
||
87 | */ |
||
88 | public function getInnerHits() |
||
97 | |||
98 | /** |
||
99 | * Returns inner hits for all objects |
||
100 | * |
||
101 | * @param string $id |
||
102 | * |
||
103 | * @return InnerHitValue |
||
104 | */ |
||
105 | public function getInnerHit($id) |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | protected function convertDocument(array $document) |
||
121 | } |
||
122 |