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

Method value

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

Returns ith value of this list view array. 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 the index is out of bounds

(&self, i: usize)

Source from the content-addressed store, hash-verified

337 /// # Panics
338 /// Panics if the index is out of bounds
339 pub fn value(&self, i: usize) -> ArrayRef {
340 let offset = self.value_offsets()[i].as_usize();
341 let length = self.value_sizes()[i].as_usize();
342 self.values.slice(offset, length)
343 }
344
345 /// Returns the offset values in the offsets buffer
346 #[inline]

Callers 2

fmtMethod · 0.45

Calls 4

as_usizeMethod · 0.80
value_sizesMethod · 0.80
value_offsetsMethod · 0.45
sliceMethod · 0.45

Tested by 1