| 56 | PlanRootSink::~PlanRootSink() {} |
| 57 | |
| 58 | Status 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 | |
| 68 | Status PlanRootSink::UpdateAndCheckRowsProducedLimit( |
| 69 | RuntimeState* state, RowBatch* batch) { |
nothing calls this directly
no test coverage detected