| 33 | } |
| 34 | |
| 35 | Status 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 | |
| 45 | Status TupleTextFileWriter::Write(RowBatch* row_batch) { |
| 46 | FOREACH_ROW(row_batch, 0, build_batch_iter) { |
nothing calls this directly
no test coverage detected