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

Method value_unchecked

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

Returns ith value of this map 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

200 /// # Safety
201 /// Caller must ensure that the index is within the array bounds
202 pub unsafe fn value_unchecked(&self, i: usize) -> StructArray {
203 let end = *unsafe { self.value_offsets().get_unchecked(i + 1) };
204 let start = *unsafe { self.value_offsets().get_unchecked(i) };
205 self.entries
206 .slice(start.to_usize().unwrap(), (end - start).to_usize().unwrap())
207 }
208
209 /// Returns ith value of this map array.
210 ///

Callers 14

try_binaryFunction · 0.45
try_binary_mutFunction · 0.45
try_binary_no_nullsFunction · 0.45
try_binary_no_nulls_mutFunction · 0.45
min_max_helperFunction · 0.45
min_max_view_helperFunction · 0.45
sum_checkedFunction · 0.45
nextMethod · 0.45
next_backMethod · 0.45
nextMethod · 0.45
next_backMethod · 0.45
gather_nullsMethod · 0.45

Calls 3

to_usizeMethod · 0.80
value_offsetsMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected