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

Method Close

python/pyarrow/src/arrow/python/io.cc:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 Status Close() {
59 if (file_) {
60 PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "close", "()");
61 Py_XDECREF(result);
62 file_.reset();
63 PY_RETURN_IF_ERROR(StatusCode::IOError);
64 }
65 return Status::OK();
66 }
67
68 Status Abort() {
69 file_.reset();

Callers

nothing calls this directly

Calls 3

cpp_PyObject_CallMethodFunction · 0.85
OKFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected