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

Method count_ones

arrow-buffer/src/util/bit_chunk_iterator.rs:168–170  ·  view source on GitHub ↗

Counts the number of ones

(&self)

Source from the content-addressed store, hash-verified

166
167 /// Counts the number of ones
168 pub fn count_ones(&self) -> usize {
169 self.iter().map(|x| x.count_ones() as usize).sum()
170 }
171}
172
173/// Iterator over an [`UnalignedBitChunk`]

Callers 6

count_set_bits_offsetMethod · 0.45
set_upto_64bitsFunction · 0.45
nullifFunction · 0.45
min_booleanFunction · 0.45
true_countMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected