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

Method value_unchecked

arrow-array/src/array/list_view_array.rs:326–330  ·  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 if [`is_null`](Self::is_null) returns true for the index. # Safety Caller must ensure that the index is within the array bounds

(&self, i: usize)

Source from the content-addressed store, hash-verified

324 /// # Safety
325 /// Caller must ensure that the index is within the array bounds
326 pub unsafe fn value_unchecked(&self, i: usize) -> ArrayRef {
327 let offset = unsafe { self.value_offsets().get_unchecked(i).as_usize() };
328 let length = unsafe { self.value_sizes().get_unchecked(i).as_usize() };
329 self.values.slice(offset, length)
330 }
331
332 /// Returns ith value of this list view array.
333 ///

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected