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

Method Write

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

Source from the content-addressed store, hash-verified

43}
44
45Status TupleTextFileWriter::Write(RowBatch* row_batch) {
46 FOREACH_ROW(row_batch, 0, build_batch_iter) {
47 TupleRow* build_row = build_batch_iter.Get();
48 DCHECK(build_row != nullptr);
49 // Convert to the human-readable representation of the row.
50 std::string row_str = PrintRow(build_row, *(row_batch->row_desc())) + '\n';
51 writer_ << row_str;
52 bytes_written_ += row_str.size();
53 }
54 return Status::OK();
55}
56
57void TupleTextFileWriter::Delete() {
58 if (writer_.is_open()) writer_.close();

Callers

nothing calls this directly

Calls 6

FOREACH_ROWFunction · 0.85
PrintRowFunction · 0.85
OKFunction · 0.85
GetMethod · 0.45
row_descMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected