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

Method GetNullCount

cpp/src/arrow/array/data.cc:214–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214int64_t ArrayData::GetNullCount() const {
215 int64_t precomputed = this->null_count.load();
216 if (ARROW_PREDICT_FALSE(precomputed == kUnknownNullCount)) {
217 if (this->buffers[0]) {
218 precomputed = this->length -
219 CountSetBits(this->buffers[0]->data(), this->offset, this->length);
220 } else {
221 precomputed = 0;
222 }
223 this->null_count.store(precomputed);
224 }
225 return precomputed;
226}
227
228int64_t ArrayData::ComputeLogicalNullCount() const {
229 if (this->buffers[0] && this->type->id() != Type::DICTIONARY) {

Callers 15

CompareMethod · 0.80
ArrayHashMethod · 0.80
null_countMethod · 0.80
AdvanceAndMemoizeMethod · 0.80
ExportMethod · 0.80
MakeRecordBatchMethod · 0.80
MakeDataViewMethod · 0.80
null_countMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80

Calls 4

storeMethod · 0.80
CountSetBitsFunction · 0.50
loadMethod · 0.45
dataMethod · 0.45

Tested by 5

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
CoalesceNullToFalseFunction · 0.64