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

Method into_parts

arrow-array/src/array/map_array.rs:136–150  ·  view source on GitHub ↗

Deconstruct this array into its constituent parts

(
        self,
    )

Source from the content-addressed store, hash-verified

134
135 /// Deconstruct this array into its constituent parts
136 pub fn into_parts(
137 self,
138 ) -> (
139 FieldRef,
140 OffsetBuffer<i32>,
141 StructArray,
142 Option<NullBuffer>,
143 bool,
144 ) {
145 let (f, ordered) = match self.data_type {
146 DataType::Map(f, ordered) => (f, ordered),
147 _ => unreachable!(),
148 };
149 (f, self.value_offsets, self.entries, self.nulls, ordered)
150 }
151
152 /// Returns a reference to the offsets of this map
153 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected