MCPcopy Create free account
hub / github.com/apache/arrow / true_count

Method true_count

cpp/src/arrow/array/array_primitive.cc:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int64_t BooleanArray::true_count() const {
59 if (data_->MayHaveNulls()) {
60 DCHECK(data_->buffers[0]);
61 return internal::CountAndSetBits(data_->buffers[0]->data(), data_->offset,
62 data_->buffers[1]->data(), data_->offset,
63 data_->length);
64 } else {
65 return internal::CountSetBits(data_->buffers[1]->data(), data_->offset,
66 data_->length);
67 }
68}
69
70// ----------------------------------------------------------------------
71// Day time interval

Callers 5

false_countMethod · 0.95
array_test.ccFile · 0.80
operator()Method · 0.80
DropNullRecordBatchFunction · 0.80
ConsumeMethod · 0.80

Calls 3

CountAndSetBitsFunction · 0.85
CountSetBitsFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected