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

Method Dequeue

be/src/exec/scan-range-queue-mt.h:57–67  ·  view source on GitHub ↗

Returns the next scan range from the queue. Returns nullptr if the queue is empty.

Source from the content-addressed store, hash-verified

55
56 /// Returns the next scan range from the queue. Returns nullptr if the queue is empty.
57 io::ScanRange* Dequeue() {
58 io::ScanRange* ret = nullptr;
59 std::lock_guard<std::mutex> lock(scan_range_queue_lock_);
60 if (UNLIKELY(!high_prio_scan_ranges_.empty())) {
61 ret = high_prio_scan_ranges_.front();
62 high_prio_scan_ranges_.pop();
63 } else if (!scan_range_queue_.Empty()) {
64 ret = scan_range_queue_.Pop();
65 }
66 return ret;
67 }
68
69 /// Returns true if the scan range queue is empty.
70 bool Empty() {

Callers 1

GetNextScanRangeMethod · 0.45

Calls 4

frontMethod · 0.80
emptyMethod · 0.45
EmptyMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected