| 318 | } |
| 319 | |
| 320 | Result<std::shared_ptr<Array>> Array::ViewOrCopyTo( |
| 321 | const std::shared_ptr<MemoryManager>& to) const { |
| 322 | ARROW_ASSIGN_OR_RAISE(auto new_data, data()->ViewOrCopyTo(to)); |
| 323 | return MakeArray(new_data); |
| 324 | } |
| 325 | |
| 326 | Result<std::shared_ptr<Tensor>> Array::ToTensor(bool allow_nulls) const { |
| 327 | if (!allow_nulls && null_count() > 0) { |
nothing calls this directly
no test coverage detected