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

Method key

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

Return the value of `keys` (the dictionary key) at index `i`, cast to `usize`, `None` if the value at `i` is `NULL`.

(&self, i: usize)

Source from the content-addressed store, hash-verified

403 /// Return the value of `keys` (the dictionary key) at index `i`,
404 /// cast to `usize`, `None` if the value at `i` is `NULL`.
405 pub fn key(&self, i: usize) -> Option<usize> {
406 self.keys.is_valid(i).then(|| self.keys.value(i).as_usize())
407 }
408
409 /// Returns a zero-copy slice of this array with the indicated offset and length.
410 pub fn slice(&self, offset: usize, length: usize) -> Self {

Callers

nothing calls this directly

Calls 3

as_usizeMethod · 0.80
is_validMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected