| 661 | |
| 662 | template <typename InputStreamType> |
| 663 | Result<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 |
nothing calls this directly
no test coverage detected