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

Method Abort

cpp/src/arrow/filesystem/mockfs.cc:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210
211 Status Abort() override {
212 if (!closed_) {
213 // MockFSOutputStream is mainly used for debugging and testing, so
214 // mark an aborted file's contents explicitly.
215 std::stringstream ss;
216 ss << "MockFSOutputStream aborted after " << file_->size() << " bytes written";
217 file_->data = Buffer::FromString(ss.str());
218 closed_ = true;
219 }
220 return Status::OK();
221 }
222
223 bool closed() const override { return closed_; }
224

Callers

nothing calls this directly

Calls 4

FromStringFunction · 0.85
strMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected