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

Function vectored_iter

arrow-string/src/binary_like.rs:128–140  ·  view source on GitHub ↗
(
    a: T,
    a_v: &'a dyn AnyDictionaryArray,
)

Source from the content-addressed store, hash-verified

126}
127
128fn vectored_iter<'a, T: BinaryArrayType<'a> + 'a>(
129 a: T,
130 a_v: &'a dyn AnyDictionaryArray,
131) -> impl Iterator<Item = Option<&'a [u8]>> + 'a {
132 let nulls = a_v.nulls();
133 let keys = a_v.normalized_keys();
134 keys.into_iter().enumerate().map(move |(idx, key)| {
135 if nulls.map(|n| n.is_null(idx)).unwrap_or_default() || a.is_null(key) {
136 return None;
137 }
138 Some(a.value(key))
139 })
140}
141
142#[inline(never)]
143fn op_binary<'a>(

Callers 1

binary_applyFunction · 0.70

Calls 5

normalized_keysMethod · 0.80
nullsMethod · 0.45
into_iterMethod · 0.45
is_nullMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected