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

Method Open

cpp/src/arrow/dataset/file_base.cc:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75Result<std::shared_ptr<io::RandomAccessFile>> FileSource::Open() const {
76 if (filesystem_) {
77 return filesystem_->OpenInputFile(file_info_);
78 }
79
80 if (buffer_) {
81 return std::make_shared<io::BufferReader>(buffer_);
82 }
83
84 return custom_open_();
85}
86
87Future<std::shared_ptr<io::RandomAccessFile>> FileSource::OpenAsync() const {
88 if (filesystem_) {

Callers 5

IsSupportedMethod · 0.45
IsSupportedMethod · 0.45
IsSupportedMethod · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
IsSupportedMethod · 0.45

Calls 1

OpenInputFileMethod · 0.45

Tested by 1

ASSERT_OK_AND_ASSIGNFunction · 0.36