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

Method GetNext

be/src/exec/tuple-text-file-reader.cc:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58Status 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

Callers

nothing calls this directly

Calls 5

OKFunction · 0.85
GetStrErrMsgFunction · 0.85
eofMethod · 0.80
StatusClass · 0.70
is_openMethod · 0.45

Tested by

no test coverage detected