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

Method Close

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

Source from the content-addressed store, hash-verified

422 ~MemoryMap() { ARROW_CHECK_OK(Close()); }
423
424 Status Close() {
425 if (file_->is_open()) {
426 // Lose our reference to the MemoryMappedRegion, so that munmap()
427 // is called as soon as all buffer exports are released.
428 region_.reset();
429 return file_->Close();
430 } else {
431 return Status::OK();
432 }
433 }
434
435 bool closed() const { return !file_->is_open(); }
436

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