| 400 | } |
| 401 | |
| 402 | Future<std::shared_ptr<InspectedFragment>> JsonFileFormat::InspectFragment( |
| 403 | const FileSource& source, const FragmentScanOptions* format_options, |
| 404 | compute::ExecContext* exec_context) const { |
| 405 | auto json_options = static_cast<const JsonFragmentScanOptions*>(format_options); |
| 406 | auto* executor = source.filesystem() ? source.filesystem()->io_context().executor() |
| 407 | : exec_context->executor(); |
| 408 | return DeferNotOk( |
| 409 | executor->Submit([source, json_options, pool = exec_context->memory_pool()] { |
| 410 | return DoInspectFragment(source, *json_options, pool); |
| 411 | })); |
| 412 | } |
| 413 | |
| 414 | Future<std::shared_ptr<FragmentScanner>> JsonFileFormat::BeginScan( |
| 415 | const FragmentScanRequest& scan_request, const InspectedFragment& inspected, |
nothing calls this directly
no test coverage detected