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

Method Open

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

Source from the content-addressed store, hash-verified

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