| 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 | /// |