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

Method get_physical_indices

arrow-array/src/array/run_array.rs:327–340  ·  view source on GitHub ↗
(&self, logical_indices: &[I])

Source from the content-addressed store, hash-verified

325 /// See [`RunEndBuffer::get_physical_indices`] for more details.
326 #[inline]
327 pub fn get_physical_indices<I>(&self, logical_indices: &[I]) -> Result<Vec<usize>, ArrowError>
328 where
329 I: ArrowNativeType,
330 {
331 self.run_ends()
332 .get_physical_indices(logical_indices)
333 .map_err(|index| {
334 ArrowError::InvalidArgumentError(format!(
335 "Logical index {} is out of bounds for RunArray of length {}",
336 index.as_usize(),
337 self.len()
338 ))
339 })
340 }
341
342 /// Returns a zero-copy slice of this array with the indicated offset and length.
343 ///

Callers 2

Calls 1

run_endsMethod · 0.80

Tested by 2