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

Method OpenReader

cpp/src/arrow/ipc/read_write_test.cc:3179–3191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3177 }
3178
3179 void OpenReader() {
3180 buffer_reader_ = std::make_shared<io::BufferReader>(file_buffer_);
3181 tracked_ = io::TrackedRandomAccessFile::Make(buffer_reader_.get());
3182 auto read_options = IpcReadOptions::Defaults();
3183 if (ReadsArePlugged()) {
3184 // This will ensure that all reads get globbed together into one large read
3185 read_options.pre_buffer_cache_options.hole_size_limit =
3186 std::numeric_limits<int64_t>::max() - 1;
3187 read_options.pre_buffer_cache_options.range_size_limit =
3188 std::numeric_limits<int64_t>::max();
3189 }
3190 ASSERT_OK_AND_ASSIGN(reader_, RecordBatchFileReader::Open(tracked_, read_options));
3191 }
3192
3193 bool ReadsArePlugged() { return GetParam(); }
3194

Callers

nothing calls this directly

Calls 4

MakeFunction · 0.50
DefaultsFunction · 0.50
ASSERT_OK_AND_ASSIGNFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected