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

Method IsSupported

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

Source from the content-addressed store, hash-verified

367}
368
369Result<bool> JsonFileFormat::IsSupported(const FileSource& source) const {
370 RETURN_NOT_OK(source.Open().status());
371 return OpenReader(source, *this, nullptr).ok();
372}
373
374Result<std::shared_ptr<Schema>> JsonFileFormat::Inspect(const FileSource& source) const {
375 ARROW_ASSIGN_OR_RAISE(auto reader, OpenReader(source, *this));

Callers

nothing calls this directly

Calls 4

OpenReaderFunction · 0.70
statusMethod · 0.45
OpenMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected