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

Method FileSegmentReader

cpp/src/arrow/io/interfaces.cc:247–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 : public internal::InputStreamConcurrencyWrapper<FileSegmentReader> {
246 public:
247 FileSegmentReader(std::shared_ptr<RandomAccessFile> file, int64_t file_offset,
248 int64_t nbytes)
249 : file_(std::move(file)),
250 closed_(false),
251 position_(0),
252 file_offset_(file_offset),
253 nbytes_(nbytes) {
254 FileInterface::set_mode(FileMode::READ);
255 }
256
257 Status CheckOpen() const {
258 if (closed_) {

Callers

nothing calls this directly

Calls 1

set_modeFunction · 0.85

Tested by

no test coverage detected