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

Method value

parquet-variant-compute/src/variant_array.rs:367–369  ·  view source on GitHub ↗

Return the [`Variant`] instance stored at the given row This is a convenience wrapper that calls [`VariantArray::try_value`] and unwraps the `Result`. Use `try_value` if you need to handle conversion errors gracefully. # Panics if the index is out of bounds if the array value is null if `try_value` returns an error.

(&self, index: usize)

Source from the content-addressed store, hash-verified

365 /// * if the array value is null
366 /// * if `try_value` returns an error.
367 pub fn value(&self, index: usize) -> Variant<'_, '_> {
368 self.try_value(index).unwrap()
369 }
370
371 /// Return the [`Variant`] instance stored at the given row
372 ///

Calls 1

try_valueMethod · 0.80