| 2228 | } |
| 2229 | |
| 2230 | Status ExportDeviceRecordBatchReader(std::shared_ptr<RecordBatchReader> reader, |
| 2231 | struct ArrowDeviceArrayStream* out) { |
| 2232 | memset(out, 0, sizeof(struct ArrowDeviceArrayStream)); |
| 2233 | out->device_type = static_cast<ArrowDeviceType>(reader->device_type()); |
| 2234 | return ExportedArrayStream<RecordBatchReader, true>::Make(std::move(reader), out); |
| 2235 | } |
| 2236 | |
| 2237 | Status ExportDeviceChunkedArray(std::shared_ptr<ChunkedArray> chunked_array, |
| 2238 | DeviceAllocationType device_type, |