| 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 | |
| 421 | Status ArrayPrinter::WriteValidityBitmap(const Array& array) { |
no test coverage detected