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

Method ReadOutStream

be/src/runtime/buffered-tuple-stream-test.cc:2216–2226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2214}
2215
2216Status StreamStateTest::ReadOutStream(
2217 BufferedTupleStream* stream, RowBatch* read_batch, int64_t& num_read) {
2218 bool eos = false;
2219 num_read = 0;
2220 do {
2221 read_batch->Reset();
2222 RETURN_IF_ERROR(stream->GetNext(read_batch, &eos));
2223 num_read += read_batch->num_rows();
2224 } while (!eos);
2225 return Status::OK();
2226}
2227
2228void StreamStateTest::VerifyStreamState(BufferedTupleStream* stream, int num_page,
2229 int num_pinned_page, int num_unpinned_page, int buffer_size) {

Callers

nothing calls this directly

Calls 4

OKFunction · 0.85
ResetMethod · 0.45
GetNextMethod · 0.45
num_rowsMethod · 0.45

Tested by

no test coverage detected