| 207 | } |
| 208 | |
| 209 | RowBatch::~RowBatch() { |
| 210 | tuple_data_pool_.FreeAll(); |
| 211 | FreeBuffers(); |
| 212 | if (tuple_ptrs_info_.get() != nullptr) { |
| 213 | ExecEnv::GetInstance()->buffer_pool()->FreeBuffer( |
| 214 | tuple_ptrs_info_->client, &(tuple_ptrs_info_->buffer)); |
| 215 | } else { |
| 216 | DCHECK(tuple_ptrs_ != nullptr); |
| 217 | free(tuple_ptrs_); |
| 218 | mem_tracker_->Release(tuple_ptrs_size_); |
| 219 | } |
| 220 | tuple_ptrs_ = nullptr; |
| 221 | } |
| 222 | |
| 223 | Status RowBatch::Serialize( |
| 224 | OutboundRowBatch* output_batch, TrackedString* compression_scratch) { |
nothing calls this directly
no test coverage detected