| 89 | } |
| 90 | |
| 91 | Result<std::shared_ptr<ChunkedArray>> ChunkedArray::MakeEmpty( |
| 92 | std::shared_ptr<DataType> type, MemoryPool* memory_pool) { |
| 93 | std::vector<std::shared_ptr<Array>> new_chunks(1); |
| 94 | ARROW_ASSIGN_OR_RAISE(new_chunks[0], MakeEmptyArray(std::move(type), memory_pool)); |
| 95 | return std::make_shared<ChunkedArray>(std::move(new_chunks)); |
| 96 | } |
| 97 | |
| 98 | DeviceAllocationTypeSet ChunkedArray::device_types() const { |
| 99 | if (chunks_.empty()) { |
nothing calls this directly
no test coverage detected