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

Method value

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

Returns ith value of this map array. This is a [`StructArray`] containing two fields Note: This method does not check for nulls and the value is arbitrary (but still well-defined) if [`is_null`](Self::is_null) returns true for the index. # Panics Panics if index `i` is out of bounds

(&self, i: usize)

Source from the content-addressed store, hash-verified

216 /// # Panics
217 /// Panics if index `i` is out of bounds
218 pub fn value(&self, i: usize) -> StructArray {
219 let end = self.value_offsets()[i + 1] as usize;
220 let start = self.value_offsets()[i] as usize;
221 self.entries.slice(start, end - start)
222 }
223
224 /// Returns the offset values in the offsets buffer
225 #[inline]

Calls 2

value_offsetsMethod · 0.45
sliceMethod · 0.45