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

Method Close

cpp/src/arrow/io/file.cc:432–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430 ~MemoryMap() { ARROW_CHECK_OK(Close()); }
431
432 Status Close() {
433 if (file_->is_open()) {
434 // Lose our reference to the MemoryMappedRegion, so that munmap()
435 // is called as soon as all buffer exports are released.
436 region_.reset();
437 return file_->Close();
438 } else {
439 return Status::OK();
440 }
441 }
442
443 bool closed() const { return !file_->is_open(); }
444

Callers

nothing calls this directly

Calls 4

OKFunction · 0.50
is_openMethod · 0.45
resetMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected