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

Method WriteValidityBitmap

cpp/src/arrow/pretty_print.cc:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419};
420
421Status ArrayPrinter::WriteValidityBitmap(const Array& array) {
422 Indent();
423 Write("-- is_valid:");
424
425 if (array.null_count() > 0) {
426 Newline();
427 Indent();
428 BooleanArray is_valid(array.length(), array.null_bitmap(), nullptr, 0,
429 array.offset());
430 return PrettyPrint(is_valid, ChildOptions(true), sink_);
431 } else {
432 Write(" all not null");
433 return Status::OK();
434 }
435}
436
437} // namespace
438

Callers

nothing calls this directly

Calls 6

WriteFunction · 0.85
PrettyPrintFunction · 0.70
OKFunction · 0.70
null_countMethod · 0.45
lengthMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected