return an iterator over all arrays in this statistics
(&self)
| 2162 | |
| 2163 | /// return an iterator over all arrays in this statistics |
| 2164 | fn arrays(&self) -> Vec<ArrayRef> { |
| 2165 | let contained_arrays = self |
| 2166 | .contained |
| 2167 | .iter() |
| 2168 | .map(|(_values, contained)| Arc::new(contained.clone()) as ArrayRef); |
| 2169 | |
| 2170 | [ |
| 2171 | self.min.as_ref().cloned(), |
| 2172 | self.max.as_ref().cloned(), |
| 2173 | self.null_counts.as_ref().cloned(), |
| 2174 | self.row_counts.as_ref().cloned(), |
| 2175 | ] |
| 2176 | .into_iter() |
| 2177 | .flatten() |
| 2178 | .chain(contained_arrays) |
| 2179 | .collect() |
| 2180 | } |
| 2181 | |
| 2182 | /// Returns the number of containers represented by this statistics This |
| 2183 | /// picks the length of the first array as all arrays must have the same |