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

Method Reset

be/src/runtime/row-batch.cc:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void RowBatch::Reset() {
366 num_rows_ = 0;
367 capacity_ = tuple_ptrs_size_ / (num_tuples_per_row_ * sizeof(Tuple*));
368 tuple_data_pool_.FreeAll();
369 FreeBuffers();
370 attached_buffer_bytes_ = 0;
371 flush_mode_ = FlushMode::NO_FLUSH_RESOURCES;
372 needs_deep_copy_ = false;
373}
374
375void RowBatch::TransferResourceOwnership(RowBatch* dest) {
376 dest->tuple_data_pool_.AcquireData(&tuple_data_pool_, false);

Callers

nothing calls this directly

Calls 1

FreeAllMethod · 0.45

Tested by

no test coverage detected