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

Method UpdateHdfsSplitStats

be/src/exec/hdfs-scan-node-base.cc:1156–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void HdfsScanNodeBase::UpdateHdfsSplitStats(
1157 const google::protobuf::RepeatedPtrField<ScanRangeParamsPB>& scan_range_params_list,
1158 PerVolumeStats* per_volume_stats) {
1159 pair<int, int64_t> init_value(0, 0);
1160 for (const ScanRangeParamsPB& scan_range_params : scan_range_params_list) {
1161 const ScanRangePB& scan_range = scan_range_params.scan_range();
1162 if (!scan_range.has_hdfs_file_split()) continue;
1163 const HdfsFileSplitPB& split = scan_range.hdfs_file_split();
1164 pair<int, int64_t>* stats =
1165 FindOrInsert(per_volume_stats, scan_range_params.volume_id(), init_value);
1166 ++(stats->first);
1167 stats->second += split.length();
1168 }
1169}
1170
1171void HdfsScanNodeBase::PrintHdfsSplitStats(const PerVolumeStats& per_volume_stats,
1172 stringstream* ss) {

Callers

nothing calls this directly

Calls 3

FindOrInsertFunction · 0.85
scan_rangeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected