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

Method value

arrow-array/src/array/dictionary_array.rs:949–957  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

947 type Item = <&'a V as ArrayAccessor>::Item;
948
949 fn value(&self, index: usize) -> Self::Item {
950 assert!(
951 index < self.len(),
952 "Trying to access an element at index {} from a TypedDictionaryArray of length {}",
953 index,
954 self.len()
955 );
956 unsafe { self.value_unchecked(index) }
957 }
958
959 unsafe fn value_unchecked(&self, index: usize) -> Self::Item {
960 let val = unsafe { self.dictionary.keys.value_unchecked(index) };

Callers 2

lookup_keyMethod · 0.45
keyMethod · 0.45

Calls 1

value_uncheckedMethod · 0.45

Tested by

no test coverage detected