MCPcopy Create free account
hub / github.com/apache/arrow / InspectFragment

Method InspectFragment

cpp/src/arrow/dataset/file_csv.cc:453–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451} // namespace
452
453Future<std::shared_ptr<InspectedFragment>> CsvFileFormat::InspectFragment(
454 const FileSource& source, const FragmentScanOptions* format_options,
455 compute::ExecContext* exec_context) const {
456 auto csv_options = static_cast<const CsvFragmentScanOptions*>(format_options);
457 Executor* io_executor;
458 if (source.filesystem()) {
459 io_executor = source.filesystem()->io_context().executor();
460 } else {
461 io_executor = exec_context->executor();
462 }
463 return DeferNotOk(io_executor->Submit([source, csv_options, exec_context]() {
464 return DoInspectFragment(source, *csv_options, exec_context);
465 }));
466}
467
468//
469// CsvFileWriter, CsvFileWriteOptions

Callers

nothing calls this directly

Calls 4

DeferNotOkFunction · 0.85
filesystemMethod · 0.80
DoInspectFragmentFunction · 0.70
executorMethod · 0.45

Tested by

no test coverage detected