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

Method Prepare

be/src/exec/plan-root-sink.cc:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56PlanRootSink::~PlanRootSink() {}
57
58Status PlanRootSink::Prepare(RuntimeState* state, MemTracker* parent_mem_tracker) {
59 RETURN_IF_ERROR(DataSink::Prepare(state, parent_mem_tracker));
60 rows_sent_counter_ = ADD_COUNTER(profile_, "RowsSent", TUnit::UNIT);
61 rows_sent_rate_ = profile_->AddDerivedCounter("RowsSentRate", TUnit::UNIT_PER_SECOND,
62 bind<int64_t>(&RuntimeProfile::UnitsPerSecond, rows_sent_counter_,
63 profile_->total_time_counter()));
64 create_result_set_timer_ = ADD_TIMER(profile(), "CreateResultSetTime");
65 return Status::OK();
66}
67
68Status PlanRootSink::UpdateAndCheckRowsProducedLimit(
69 RuntimeState* state, RowBatch* batch) {

Callers

nothing calls this directly

Calls 3

OKFunction · 0.85
AddDerivedCounterMethod · 0.80
total_time_counterMethod · 0.80

Tested by

no test coverage detected