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

Method fields_logical_nulls

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

Returns a vector of tuples containing each field's type_id and its logical null buffer. Only fields with non-zero null counts are included.

(&self)

Source from the content-addressed store, hash-verified

669 /// Returns a vector of tuples containing each field's type_id and its logical null buffer.
670 /// Only fields with non-zero null counts are included.
671 fn fields_logical_nulls(&self) -> Vec<(i8, NullBuffer)> {
672 self.fields
673 .iter()
674 .enumerate()
675 .filter_map(|(type_id, field)| Some((type_id as i8, field.as_ref()?.logical_nulls()?)))
676 .filter(|(_, nulls)| nulls.null_count() > 0)
677 .collect()
678 }
679}
680
681impl From<ArrayData> for UnionArray {

Callers 1

logical_nullsMethod · 0.80

Calls 6

collectMethod · 0.80
filterMethod · 0.80
iterMethod · 0.45
logical_nullsMethod · 0.45
as_refMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected