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

Method GetNextScanRangeToRead

be/src/exec/hdfs-scan-node-mt.cc:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169Status HdfsScanNodeMt::GetNextScanRangeToRead(
170 io::ScanRange** scan_range, bool* needs_buffers) {
171 // With deterministic scan ranges, use the same code as non-mt-dop
172 if (deterministic_scanrange_assignment_) {
173 return reader_context_->GetNextUnstartedRange(scan_range, needs_buffers);
174 }
175 RETURN_IF_ERROR(shared_state_->GetNextScanRange(runtime_state_, scan_range));
176 if (*scan_range != nullptr) {
177 RETURN_IF_ERROR(reader_context_->StartScanRange(*scan_range, needs_buffers));
178 }
179 return Status::OK();
180}
181}

Callers

nothing calls this directly

Calls 4

OKFunction · 0.85
GetNextUnstartedRangeMethod · 0.80
GetNextScanRangeMethod · 0.80
StartScanRangeMethod · 0.80

Tested by

no test coverage detected