| 56 | } |
| 57 | |
| 58 | Status TupleTextFileReader::GetNext(string* output, bool* eos) { |
| 59 | DCHECK(output != nullptr); |
| 60 | DCHECK(eos != nullptr); |
| 61 | DCHECK(reader_.is_open()); |
| 62 | if (reader_.eof()) { |
| 63 | *eos = true; |
| 64 | return Status::OK(); |
| 65 | } |
| 66 | getline(reader_, *output); |
| 67 | if (!reader_.eof() && !reader_.good()) { |
| 68 | return Status(TErrorCode::DISK_IO_ERROR, "tuple reader on " + path_, GetStrErrMsg()); |
| 69 | } |
| 70 | *eos = false; |
| 71 | return Status::OK(); |
| 72 | } |
| 73 | |
| 74 | } // namespace impala |
nothing calls this directly
no test coverage detected