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

Method OpenAsync

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

Source from the content-addressed store, hash-verified

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

Callers 1

GetReaderAsyncMethod · 0.45

Calls 1

OpenInputFileAsyncMethod · 0.80

Tested by

no test coverage detected