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

Method false_count

arrow-array/src/array/boolean_array.rs:177–179  ·  view source on GitHub ↗

Returns the number of non null, false values within this array. If you only need to check if there is at least one false value, consider using `has_false()` which can short-circuit and be more efficient.

(&self)

Source from the content-addressed store, hash-verified

175 /// Returns the number of non null, false values within this array.
176 /// If you only need to check if there is at least one false value, consider using `has_false()` which can short-circuit and be more efficient.
177 pub fn false_count(&self) -> usize {
178 self.len() - self.null_count() - self.true_count()
179 }
180
181 /// Returns whether there is at least one non-null `true` value in this array.
182 ///

Callers

nothing calls this directly

Calls 3

true_countMethod · 0.80
lenMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected