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

Method value_length

arrow-array/src/array/map_array.rs:232–235  ·  view source on GitHub ↗
(&self, i: usize)

Source from the content-addressed store, hash-verified

230 /// Returns the length for value at index `i`.
231 #[inline]
232 pub fn value_length(&self, i: usize) -> i32 {
233 let offsets = self.value_offsets();
234 offsets[i + 1] - offsets[i]
235 }
236
237 /// Returns a zero-copy slice of this array with the indicated offset and length.
238 pub fn slice(&self, offset: usize, length: usize) -> Self {

Callers 11

try_newMethod · 0.45
prepareMethod · 0.45
encode_fixed_size_binaryFunction · 0.45
encode_fixed_size_listFunction · 0.45
filter_fixed_size_binaryFunction · 0.45
pack_fixed_values_implFunction · 0.45
compare_fixed_listFunction · 0.45
sort_fixed_size_listFunction · 0.45

Calls 1

value_offsetsMethod · 0.45

Tested by 1