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

Method take_iter

arrow-array/src/array/boolean_array.rs:246–251  ·  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

244
245 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
246 pub fn take_iter<'a>(
247 &'a self,
248 indexes: impl Iterator<Item = Option<usize>> + 'a,
249 ) -> impl Iterator<Item = Option<bool>> + 'a {
250 indexes.map(|opt_index| opt_index.map(|index| self.value(index)))
251 }
252
253 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
254 /// # Safety

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected