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

Method value

arrow-array/src/array/list_array.rs:351–355  ·  view source on GitHub ↗

Returns ith value of this list array. Note: This method does not check for nulls and the value is arbitrary (but still well-defined) if [`is_null`](Self::is_null) returns true for the index. # Panics Panics if index `i` is out of bounds

(&self, i: usize)

Source from the content-addressed store, hash-verified

349 /// # Panics
350 /// Panics if index `i` is out of bounds
351 pub fn value(&self, i: usize) -> ArrayRef {
352 let end = self.value_offsets()[i + 1].as_usize();
353 let start = self.value_offsets()[i].as_usize();
354 self.values.slice(start, end - start)
355 }
356
357 /// Returns the offset values in the offsets buffer.
358 ///

Callers 2

fmtMethod · 0.45

Calls 3

as_usizeMethod · 0.80
value_offsetsMethod · 0.45
sliceMethod · 0.45

Tested by 1