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

Method IsSupported

cpp/src/arrow/dataset/file_orc.cc:147–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145OrcFileFormat::OrcFileFormat() : FileFormat(/*default_fragment_scan_options=*/nullptr) {}
146
147Result<bool> OrcFileFormat::IsSupported(const FileSource& source) const {
148 RETURN_NOT_OK(source.Open().status());
149 return OpenORCReader(source).ok();
150}
151
152Result<std::shared_ptr<Schema>> OrcFileFormat::Inspect(const FileSource& source) const {
153 ARROW_ASSIGN_OR_RAISE(auto reader, OpenORCReader(source));

Callers 1

TEST_PFunction · 0.45

Calls 4

OpenORCReaderFunction · 0.85
statusMethod · 0.45
OpenMethod · 0.45
okMethod · 0.45

Tested by 1

TEST_PFunction · 0.36