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

Method GetNext

be/src/exec/singular-row-src-node.cc:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 : ExecNode(pool, pnode, descs) {}
35
36Status SingularRowSrcNode::GetNext(RuntimeState* state, RowBatch* row_batch, bool* eos) {
37 // We do not time this function, check for cancellation, or perform the usual per-batch
38 // query maintenance because those would dominate the execution cost of this node.
39 DCHECK(containing_subplan_ != NULL) << "set_containing_subplan() must be called";
40
41 // Only produces a single row per GetNext() call.
42 *eos = true;
43 int row_idx = row_batch->AddRow();
44 TupleRow* row = row_batch->GetRow(row_idx);
45 row_batch->CopyRow(containing_subplan_->current_row(), row);
46 row_batch->CommitLastRow();
47 return Status::OK();
48}
49
50}

Callers

nothing calls this directly

Calls 6

OKFunction · 0.85
CopyRowMethod · 0.80
CommitLastRowMethod · 0.80
AddRowMethod · 0.45
GetRowMethod · 0.45
current_rowMethod · 0.45

Tested by

no test coverage detected