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

Method CloseFileRanges

be/src/exec/base-sequence-scanner.cc:331–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void BaseSequenceScanner::CloseFileRanges(const char* filename) {
332 DCHECK(only_parsing_header_);
333 const HdfsFileDesc* desc = scan_node_->GetFileDesc(
334 context_->partition_descriptor()->id(), filename);
335 const vector<ScanRange*>& splits = desc->splits;
336 for (int i = 0; i < splits.size(); ++i) {
337 COUNTER_ADD(bytes_skipped_counter_, splits[i]->bytes_to_read());
338 }
339 scan_node_->SkipFile(file_format(), desc);
340}
341
342int BaseSequenceScanner::ReadPastSize(int64_t file_offset) {
343 DCHECK_GE(total_block_size_, 0);

Callers

nothing calls this directly

Calls 6

partition_descriptorMethod · 0.80
bytes_to_readMethod · 0.80
SkipFileMethod · 0.80
GetFileDescMethod · 0.45
idMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected