| 430 | } |
| 431 | |
| 432 | Future<std::shared_ptr<FragmentScanner>> CsvFileFormat::BeginScan( |
| 433 | const FragmentScanRequest& request, const InspectedFragment& inspected_fragment, |
| 434 | const FragmentScanOptions* format_options, compute::ExecContext* exec_context) const { |
| 435 | auto csv_options = static_cast<const CsvFragmentScanOptions*>(format_options); |
| 436 | auto csv_fragment = static_cast<const CsvInspectedFragment&>(inspected_fragment); |
| 437 | return CsvFileScanner::Make(*csv_options, request, csv_fragment, |
| 438 | exec_context->executor()); |
| 439 | } |
| 440 | |
| 441 | namespace { |
| 442 | |