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

Method set_num_rows

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

Set function can be used to reduce the number of rows in the batch. This is only used in the limit case where more rows were added than necessary.

Source from the content-addressed store, hash-verified

142 /// Set function can be used to reduce the number of rows in the batch. This is only
143 /// used in the limit case where more rows were added than necessary.
144 void set_num_rows(int num_rows) {
145 DCHECK_LE(num_rows, num_rows_);
146 DCHECK_GE(num_rows, 0);
147 num_rows_ = num_rows;
148 }
149
150 /// Returns true if the row batch has filled rows up to its capacity or has accumulated
151 /// enough memory. The memory calculation includes the tuple data pool and any

Callers 13

GetNextMethod · 0.80
GetNextMethod · 0.80
GetNextMethod · 0.80
GetNextMethod · 0.80
GetNextMethod · 0.80
GetNextMethod · 0.80
GetNextMergingMethod · 0.80
AddFileAuxMethod · 0.80
SetHeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected