(&self)
| 300 | } |
| 301 | |
| 302 | fn offsets(&self) -> Box<dyn Iterator<Item = usize> + 'a> { |
| 303 | match self { |
| 304 | ArrayWrapper::FixedSizeList(arr) => { |
| 305 | let value_length = arr.value_length() as usize; |
| 306 | Box::new((0..=arr.len()).map(move |i| i * value_length)) |
| 307 | } |
| 308 | ArrayWrapper::List(arr) => { |
| 309 | Box::new(arr.offsets().iter().map(|o| (*o) as usize)) |
| 310 | } |
| 311 | ArrayWrapper::LargeList(arr) => { |
| 312 | Box::new(arr.offsets().iter().map(|o| (*o) as usize)) |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | fn nulls(&self) -> Option<&NullBuffer> { |
| 318 | match self { |
no test coverage detected