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

Method Print

cpp/src/arrow/pretty_print.cc:406–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 }
405
406 Status Print(const Array& array) {
407 if (array.device_type() != DeviceAllocationType::kCPU) {
408 // GH-43055: ideally we only copy start/end slices from non-CPU memory
409 // based on the window size that is being printed
410 ARROW_ASSIGN_OR_RAISE(auto array_cpu,
411 array.ViewOrCopyTo(default_cpu_memory_manager()));
412 RETURN_NOT_OK(VisitArrayInline(*array_cpu, this));
413 } else {
414 RETURN_NOT_OK(VisitArrayInline(array, this));
415 }
416 Flush();
417 return Status::OK();
418 }
419};
420
421Status ArrayPrinter::WriteValidityBitmap(const Array& array) {

Callers 2

WriteDataValuesMethod · 0.45
PrettyPrintFunction · 0.45

Calls 4

VisitArrayInlineFunction · 0.85
FlushFunction · 0.85
OKFunction · 0.70
device_typeMethod · 0.45

Tested by

no test coverage detected