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

Method InspectFragment

cpp/src/arrow/dataset/file_json.cc:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402Future<std::shared_ptr<InspectedFragment>> JsonFileFormat::InspectFragment(
403 const FileSource& source, const FragmentScanOptions* format_options,
404 compute::ExecContext* exec_context) const {
405 auto json_options = static_cast<const JsonFragmentScanOptions*>(format_options);
406 auto* executor = source.filesystem() ? source.filesystem()->io_context().executor()
407 : exec_context->executor();
408 return DeferNotOk(
409 executor->Submit([source, json_options, pool = exec_context->memory_pool()] {
410 return DoInspectFragment(source, *json_options, pool);
411 }));
412}
413
414Future<std::shared_ptr<FragmentScanner>> JsonFileFormat::BeginScan(
415 const FragmentScanRequest& scan_request, const InspectedFragment& inspected,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected