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

Function CloseFromDestructor

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

Source from the content-addressed store, hash-verified

281namespace internal {
282
283void CloseFromDestructor(FileInterface* file) {
284 Status st = file->Close();
285 if (!st.ok()) {
286 auto file_type = typeid(*file).name();
287#ifdef NDEBUG
288 ARROW_LOG(ERROR) << "Error ignored when destroying file of type " << file_type << ": "
289 << st;
290#else
291 std::stringstream ss;
292 ss << "When destroying file of type " << file_type << ": " << st.message();
293 ARROW_LOG(FATAL) << st.WithMessage(ss.str());
294#endif
295 }
296}
297
298Result<int64_t> ValidateReadRange(int64_t offset, int64_t size, int64_t file_size) {
299 if (offset < 0 || size < 0) {

Callers 15

~BufferOutputStreamMethod · 0.85
~SlowInputStreamMethod · 0.85
~SlowRandomAccessFileMethod · 0.85
~BufferedOutputStreamMethod · 0.85
~BufferedInputStreamMethod · 0.85
~ReadableFileMethod · 0.85
~FileOutputStreamMethod · 0.85
~MemoryMappedFileMethod · 0.85
~ObjectAppendStreamMethod · 0.85
~ObjectOutputStreamMethod · 0.85

Calls 4

strMethod · 0.80
CloseMethod · 0.45
okMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected