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

Method value

arrow-array/src/array/run_array.rs:761–769  ·  view source on GitHub ↗
(&self, logical_index: usize)

Source from the content-addressed store, hash-verified

759 type Item = <&'a V as ArrayAccessor>::Item;
760
761 fn value(&self, logical_index: usize) -> Self::Item {
762 assert!(
763 logical_index < self.len(),
764 "Trying to access an element at index {} from a TypedRunArray of length {}",
765 logical_index,
766 self.len()
767 );
768 unsafe { self.value_unchecked(logical_index) }
769 }
770
771 unsafe fn value_unchecked(&self, logical_index: usize) -> Self::Item {
772 let physical_index = self.run_array.get_physical_index(logical_index);

Callers 3

logical_lenMethod · 0.45
test_ree_array_accessorFunction · 0.45

Calls 1

value_uncheckedMethod · 0.45

Tested by 1

test_ree_array_accessorFunction · 0.36