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

Method OpenAsync

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

Source from the content-addressed store, hash-verified

84}
85
86Future<std::shared_ptr<io::RandomAccessFile>> FileSource::OpenAsync() const {
87 if (filesystem_) {
88 return filesystem_->OpenInputFileAsync(file_info_);
89 }
90
91 if (buffer_) {
92 return Future<std::shared_ptr<io::RandomAccessFile>>::MakeFinished(
93 std::make_shared<io::BufferReader>(buffer_));
94 }
95
96 // TODO(GH-37962): custom_open_ should not block
97 return Future<std::shared_ptr<io::RandomAccessFile>>::MakeFinished(custom_open_());
98}
99
100int64_t FileSource::Size() const {
101 if (filesystem_) {

Callers 1

GetReaderAsyncMethod · 0.45

Calls 1

OpenInputFileAsyncMethod · 0.80

Tested by

no test coverage detected