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.
| 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 |
no outgoing calls
no test coverage detected