| 465 | } // namespace |
| 466 | |
| 467 | Future<std::shared_ptr<InspectedFragment>> CsvFileFormat::InspectFragment( |
| 468 | const FileSource& source, const FragmentScanOptions* format_options, |
| 469 | compute::ExecContext* exec_context) const { |
| 470 | auto csv_options = static_cast<const CsvFragmentScanOptions*>(format_options); |
| 471 | Executor* io_executor; |
| 472 | if (source.filesystem()) { |
| 473 | io_executor = source.filesystem()->io_context().executor(); |
| 474 | } else { |
| 475 | io_executor = exec_context->executor(); |
| 476 | } |
| 477 | return DeferNotOk(io_executor->Submit([source, csv_options, exec_context]() { |
| 478 | return DoInspectFragment(source, *csv_options, exec_context); |
| 479 | })); |
| 480 | } |
| 481 | |
| 482 | // |
| 483 | // CsvFileWriter, CsvFileWriteOptions |
nothing calls this directly
no test coverage detected