| 416 | } |
| 417 | |
| 418 | Future<std::shared_ptr<FragmentScanner>> CsvFileFormat::BeginScan( |
| 419 | const FragmentScanRequest& request, const InspectedFragment& inspected_fragment, |
| 420 | const FragmentScanOptions* format_options, compute::ExecContext* exec_context) const { |
| 421 | auto csv_options = static_cast<const CsvFragmentScanOptions*>(format_options); |
| 422 | auto csv_fragment = static_cast<const CsvInspectedFragment&>(inspected_fragment); |
| 423 | return CsvFileScanner::Make(*csv_options, request, csv_fragment, |
| 424 | exec_context->executor()); |
| 425 | } |
| 426 | |
| 427 | namespace { |
| 428 | |