| 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 |
nothing calls this directly
no test coverage detected