| 81 | } |
| 82 | |
| 83 | Result<std::shared_ptr<ChunkedArray>> ChunkedArray::MakeEmpty( |
| 84 | std::shared_ptr<DataType> type, MemoryPool* memory_pool) { |
| 85 | std::vector<std::shared_ptr<Array>> new_chunks(1); |
| 86 | ARROW_ASSIGN_OR_RAISE(new_chunks[0], MakeEmptyArray(std::move(type), memory_pool)); |
| 87 | return std::make_shared<ChunkedArray>(std::move(new_chunks)); |
| 88 | } |
| 89 | |
| 90 | DeviceAllocationTypeSet ChunkedArray::device_types() const { |
| 91 | if (chunks_.empty()) { |
nothing calls this directly
no test coverage detected