\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
| 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; } |