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

Method RowNum

be/src/runtime/row-batch.h:220–220  ·  view source on GitHub ↗

Returns the index in the RowBatch of the current row. This does an integer division and so should not be used in hot inner loops.

Source from the content-addressed store, hash-verified

218 /// Returns the index in the RowBatch of the current row. This does an integer
219 /// division and so should not be used in hot inner loops.
220 int RowNum() { return (row_ - parent_->tuple_ptrs_) / num_tuples_per_row_; }
221
222 /// Returns number of rows remaining.
223 int RemainingRows() { return (row_batch_end_ - row_) / num_tuples_per_row_; }

Callers 2

FOREACH_ROW_LIMITFunction · 0.80
ProcessProbeBatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected