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

Function MayHaveNulls

cpp/src/arrow/array/data.h:423–427  ·  view source on GitHub ↗

\brief Return true if the array may have nulls in its validity bitmap This method returns true if the data has a validity bitmap, and the physical null count is either known to be non-zero or not yet known. Unlike `MayHaveLogicalNulls`, this does not check for the presence of nulls in child data for data types such as unions and run-end encoded types. \see HasValidityBitmap \see MayHaveLogicalN

Source from the content-addressed store, hash-verified

421 /// \see HasValidityBitmap
422 /// \see MayHaveLogicalNulls
423 bool MayHaveNulls() const {
424 // If an ArrayData is slightly malformed it may have kUnknownNullCount set
425 // but no buffer
426 return null_count.load() != 0 && buffers[0] != NULLPTR;
427 }
428
429 /// \brief Return true if the array has a validity bitmap
430 bool HasValidityBitmap() const { return buffers[0] != NULLPTR; }

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected