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

Method GetNext

be/src/exec/hdfs-scanner.h:135–143  ·  view source on GitHub ↗

Returns the next row batch from this scanner's split. Recoverable errors are logged to the runtime state. Only returns a non-OK status if a non-recoverable error is encountered (or abort_on_error is true). If OK is returned, 'parse_status_' is guaranteed to be OK as well. The memory referenced by the tuples is valid until this or any subsequently returned batch is reset or destroyed. Only valid to

Source from the content-addressed store, hash-verified

133 /// returned batch is reset or destroyed.
134 /// Only valid to call if the parent scan node is single-threaded.
135 Status GetNext(RowBatch* row_batch) WARN_UNUSED_RESULT {
136 DCHECK(!scan_node_->HasRowBatchQueue());
137 RETURN_IF_ERROR(GetNextInternal(row_batch));
138 ++getnext_batches_returned_;
139 if ((getnext_batches_returned_ & (BATCHES_PER_FILTER_SELECTIVITY_CHECK - 1)) == 0) {
140 CheckFiltersEffectiveness();
141 }
142 return Status::OK();
143 }
144
145 /// Process an entire split, reading bytes from the context's streams. Context is
146 /// initialized with the split data (e.g. template tuple, partition descriptor, etc).

Callers

nothing calls this directly

Calls 2

OKFunction · 0.85
HasRowBatchQueueMethod · 0.45

Tested by

no test coverage detected