| 1465 | |
| 1466 | #ifdef ARROW_COMPUTE |
| 1467 | static std::function<Result<std::shared_ptr<Array>>()> JSONREEArrayFactory( |
| 1468 | const std::shared_ptr<MemoryManager>& mm, std::shared_ptr<DataType> type, |
| 1469 | const char* json) { |
| 1470 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 1471 | ARROW_ASSIGN_OR_RAISE(auto result, REEFromJSON(type, json)); |
| 1472 | return ToDevice(mm, *result->data()); |
| 1473 | }; |
| 1474 | } |
| 1475 | #endif |
| 1476 | |
| 1477 | template <typename ArrayFactory, typename ExportCheckFunc> |