MCPcopy Create free account
hub / github.com/apache/arrow-rs / into_parts

Method into_parts

arrow-array/src/array/list_view_array.rs:268–288  ·  view source on GitHub ↗

Deconstruct this array into its constituent parts

(
        self,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers 2

fromMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected