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

Method take_iter

arrow-array/src/array/string_array.rs:36–41  ·  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

34
35 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
36 pub fn take_iter<'a>(
37 &'a self,
38 indexes: impl Iterator<Item = Option<usize>> + 'a,
39 ) -> impl Iterator<Item = Option<&'a str>> {
40 indexes.map(|opt_index| opt_index.map(|index| self.value(index)))
41 }
42
43 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
44 /// # Safety

Callers 5

test_dictionary_iterFunction · 0.45
_dictionaryFunction · 0.45
_length_dictionaryFunction · 0.45
_bit_length_dictionaryFunction · 0.45

Calls 1

valueMethod · 0.45

Tested by 2

test_dictionary_iterFunction · 0.36