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

Method IsSupported

cpp/src/arrow/dataset/file_ipc.cc:129–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127IpcFileFormat::IpcFileFormat() : FileFormat(std::make_shared<IpcFragmentScanOptions>()) {}
128
129Result<bool> IpcFileFormat::IsSupported(const FileSource& source) const {
130 RETURN_NOT_OK(source.Open().status());
131 return OpenReader(source).ok();
132}
133
134Result<std::shared_ptr<Schema>> IpcFileFormat::Inspect(const FileSource& source) const {
135 ARROW_ASSIGN_OR_RAISE(auto reader, OpenReader(source));

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