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

Method keys_iter

arrow-array/src/array/dictionary_array.rs:399–401  ·  view source on GitHub ↗

Return an iterator over the keys (indexes into the dictionary)

(&self)

Source from the content-addressed store, hash-verified

397
398 /// Return an iterator over the keys (indexes into the dictionary)
399 pub fn keys_iter(&self) -> impl Iterator<Item = Option<usize>> + '_ {
400 self.keys.iter().map(|key| key.map(|k| k.as_usize()))
401 }
402
403 /// Return the value of `keys` (the dictionary key) at index `i`,
404 /// cast to `usize`, `None` if the value at `i` is `NULL`.

Callers 5

test_dictionary_iterFunction · 0.80
_dictionaryFunction · 0.80
_length_dictionaryFunction · 0.80
_bit_length_dictionaryFunction · 0.80

Calls 2

as_usizeMethod · 0.80
iterMethod · 0.45

Tested by 2

test_dictionary_iterFunction · 0.64