| 2018 | } |
| 2019 | |
| 2020 | Result<std::shared_ptr<RecordBatch>> ImportDeviceRecordBatch( |
| 2021 | struct ArrowDeviceArray* array, std::shared_ptr<Schema> schema, |
| 2022 | const DeviceMemoryMapper& mapper) { |
| 2023 | auto type = struct_(schema->fields()); |
| 2024 | ArrayImporter importer(type); |
| 2025 | RETURN_NOT_OK(importer.Import(array, mapper)); |
| 2026 | return importer.MakeRecordBatch(std::move(schema)); |
| 2027 | } |
| 2028 | |
| 2029 | Result<std::shared_ptr<RecordBatch>> ImportDeviceRecordBatch( |
| 2030 | struct ArrowDeviceArray* array, struct ArrowSchema* schema, |