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

Function without_nulls_selected

arrow-array/src/array/union_array.rs:1035–1041  ·  view source on GitHub ↗

Returns a bitmask where bits indicate if any id from `without_nulls_ids` exist in `type_ids_chunk`.

(type_ids_chunk: &[i8], without_nulls_ids: &[i8])

Source from the content-addressed store, hash-verified

1033
1034/// Returns a bitmask where bits indicate if any id from `without_nulls_ids` exist in `type_ids_chunk`.
1035fn without_nulls_selected(type_ids_chunk: &[i8], without_nulls_ids: &[i8]) -> u64 {
1036 without_nulls_ids
1037 .iter()
1038 .fold(0, |fully_valid_selected, field_type_id| {
1039 fully_valid_selected | selection_mask(type_ids_chunk, *field_type_id)
1040 })
1041}
1042
1043#[cfg(test)]
1044mod tests {

Callers 1

Calls 2

selection_maskFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected