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

Function OpenInputStreamGeneric

cpp/src/arrow/filesystem/localfs.cc:663–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661
662template <typename InputStreamType>
663Result<std::shared_ptr<InputStreamType>> OpenInputStreamGeneric(
664 const std::string& path, const LocalFileSystemOptions& options,
665 const io::IOContext& io_context) {
666 RETURN_NOT_OK(ValidatePath(path));
667 if (options.use_mmap) {
668 return io::MemoryMappedFile::Open(path, io::FileMode::READ);
669 } else {
670 return io::ReadableFile::Open(path, io_context.pool());
671 }
672}
673
674} // namespace
675

Callers

nothing calls this directly

Calls 2

ValidatePathFunction · 0.70
poolMethod · 0.45

Tested by

no test coverage detected