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

Method Reset

be/src/exec/grouping-aggregator.cc:424–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424Status GroupingAggregator::Reset(RuntimeState* state, RowBatch* row_batch) {
425 DCHECK(!is_streaming_preagg_) << "Cannot reset preaggregation";
426 partition_eos_ = false;
427 streaming_idx_ = 0;
428 // Reset the HT and the partitions for this grouping agg.
429 ht_ctx_->set_level(0);
430 if (output_partition_ != nullptr) {
431 // Attach all buffers referenced by previously-returned rows.
432 output_partition_->aggregated_row_stream->Close(
433 row_batch, RowBatch::FlushMode::FLUSH_RESOURCES);
434 }
435 ClosePartitions();
436 return Status::OK();
437}
438
439void GroupingAggregator::Close(RuntimeState* state) {
440 ClosePartitions();

Callers 1

ProcessStreamMethod · 0.45

Calls 3

OKFunction · 0.85
set_levelMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected