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

Method AddAndStartStream

be/src/exec/scanner-context.cc:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95Status ScannerContext::AddAndStartStream(
96 ScanRange* range, int64_t reservation, ScannerContext::Stream** stream) {
97 DCHECK(stream != nullptr);
98 DiskIoMgr* io_mgr = ExecEnv::GetInstance()->disk_io_mgr();
99 bool needs_buffers;
100 RETURN_IF_ERROR(scan_node_->reader_context()->StartScanRange(range, &needs_buffers));
101 if (needs_buffers) {
102 RETURN_IF_ERROR(io_mgr->AllocateBuffersForRange(bp_client(), range, reservation));
103 }
104 *stream = AddStream(range, reservation);
105 DCHECK(*stream != nullptr);
106 return Status::OK();
107}
108
109void ScannerContext::Stream::ReleaseCompletedResources(bool done) {
110 if (done) {

Callers 2

StartScanMethod · 0.80
StartColumnReadingMethod · 0.80

Calls 5

OKFunction · 0.85
disk_io_mgrMethod · 0.80
StartScanRangeMethod · 0.80
reader_contextMethod · 0.80

Tested by

no test coverage detected