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

Method CloseCurrentClientScanner

be/src/exec/kudu/kudu-scanner.cc:349–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void KuduScanner::CloseCurrentClientScanner() {
350 DCHECK_NOTNULL(scanner_.get());
351
352 std::map<std::string, int64_t> metrics = scanner_->GetResourceMetrics().Get();
353 COUNTER_ADD(scan_node_->bytes_read_counter(), metrics["bytes_read"]);
354 COUNTER_ADD(
355 scan_node_->kudu_scanner_total_duration_time(), metrics["total_duration_nanos"]);
356 COUNTER_ADD(
357 scan_node_->kudu_scanner_queue_duration_time(), metrics["queue_duration_nanos"]);
358 COUNTER_ADD(scan_node_->kudu_scanner_cpu_user_time(), metrics["cpu_user_nanos"]);
359 COUNTER_ADD(scan_node_->kudu_scanner_cpu_sys_time(), metrics["cpu_system_nanos"]);
360 COUNTER_ADD(
361 scan_node_->kudu_scanner_cfile_cache_hit_bytes(), metrics["cfile_cache_hit_bytes"]);
362 COUNTER_ADD(scan_node_->kudu_scanner_cfile_cache_miss_bytes(),
363 metrics["cfile_cache_miss_bytes"]);
364 scanner_->Close();
365 scanner_.reset();
366}
367
368Status KuduScanner::HandleEmptyProjection(RowBatch* row_batch) {
369 int num_rows_remaining = cur_kudu_batch_.NumRows() - cur_kudu_batch_num_read_;

Callers

nothing calls this directly

Calls 11

bytes_read_counterMethod · 0.80
getMethod · 0.65
resetMethod · 0.65
GetMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected