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

Method Resize

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

Source from the content-addressed store, hash-verified

777}
778
779Status MemoryMappedFile::Resize(int64_t new_size) {
780 RETURN_NOT_OK(memory_map_->CheckClosed());
781 std::unique_lock<std::mutex> write_guard(memory_map_->write_lock(), std::defer_lock);
782 std::unique_lock<std::mutex> resize_guard(memory_map_->resize_lock(), std::defer_lock);
783 std::lock(write_guard, resize_guard);
784 RETURN_NOT_OK(memory_map_->Resize(new_size));
785 return Status::OK();
786}
787
788int MemoryMappedFile::file_descriptor() const { return memory_map_->fd(); }
789

Callers 15

ReadMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TYPED_TESTFunction · 0.45
ReadMethod · 0.45
CloseMethod · 0.45
ReserveMethod · 0.45
TEST_FFunction · 0.45
CompressDataOneShotFunction · 0.45
ReadAtMethod · 0.45

Calls 2

OKFunction · 0.50
CheckClosedMethod · 0.45

Tested by 9

TEST_FFunction · 0.36
TESTFunction · 0.36
TYPED_TESTFunction · 0.36
TEST_FFunction · 0.36
CompressDataOneShotFunction · 0.36
DecodeStringDictionaryFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
MakeListArrayFunction · 0.36