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

Method take_iter

arrow-array/src/array/primitive_array.rs:814–819  ·  view source on GitHub ↗

Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`

(
        &'a self,
        indexes: impl Iterator<Item = Option<usize>> + 'a,
    )

Source from the content-addressed store, hash-verified

812
813 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
814 pub fn take_iter<'a>(
815 &'a self,
816 indexes: impl Iterator<Item = Option<usize>> + 'a,
817 ) -> impl Iterator<Item = Option<T::Native>> + 'a {
818 indexes.map(|opt_index| opt_index.map(|index| self.value(index)))
819 }
820
821 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
822 /// # Safety

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected