Deconstruct this array into its constituent parts
(
self,
)
| 266 | |
| 267 | /// Deconstruct this array into its constituent parts |
| 268 | pub fn into_parts( |
| 269 | self, |
| 270 | ) -> ( |
| 271 | FieldRef, |
| 272 | ScalarBuffer<OffsetSize>, |
| 273 | ScalarBuffer<OffsetSize>, |
| 274 | ArrayRef, |
| 275 | Option<NullBuffer>, |
| 276 | ) { |
| 277 | let f = match self.data_type { |
| 278 | DataType::ListView(f) | DataType::LargeListView(f) => f, |
| 279 | _ => unreachable!(), |
| 280 | }; |
| 281 | ( |
| 282 | f, |
| 283 | self.value_offsets, |
| 284 | self.value_sizes, |
| 285 | self.values, |
| 286 | self.nulls, |
| 287 | ) |
| 288 | } |
| 289 | |
| 290 | /// Returns a reference to the offsets of this list |
| 291 | /// |
no outgoing calls
no test coverage detected