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