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

Method InspectFragment

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

Source from the content-addressed store, hash-verified

465} // namespace
466
467Future<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

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