MCPcopy Create free account
hub / github.com/apache/impala / Open

Method Open

be/src/exec/tuple-text-file-writer.cc:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35Status TupleTextFileWriter::Open() {
36 VLOG_FILE << "Tuple Cache Debug: Opening " << path_ << " for text writing";
37 writer_.open(path_, std::ios::out | std::ios::binary | std::ios::trunc);
38 if (!writer_.is_open() || writer_.fail()) {
39 return Status(TErrorCode::DISK_IO_ERROR,
40 "Open tuple text writer on " + path_ + " failed", GetStrErrMsg());
41 }
42 return Status::OK();
43}
44
45Status TupleTextFileWriter::Write(RowBatch* row_batch) {
46 FOREACH_ROW(row_batch, 0, build_batch_iter) {

Callers

nothing calls this directly

Calls 5

GetStrErrMsgFunction · 0.85
OKFunction · 0.85
StatusClass · 0.70
openMethod · 0.65
is_openMethod · 0.45

Tested by

no test coverage detected