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

Method Push

be/src/util/priority-queue.h:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 // Add a new element to the end of the array and then heapify. This is an
111 // O(log n) operation.
112 void IR_ALWAYS_INLINE Push(const T& v) {
113 // Insert the new element v at the end.
114 elements_.emplace_back(v);
115 // Move up the new element and its ancestors if necessary (all the way to the
116 // element at index 0) to maintain the heap property.
117 HeapifySubtreeUp(0, Size() - 1);
118 }
119
120 // Remove the top element from the priority queue and then heapify affected
121 // elements. This is an O(log n) operation. Must not be called when the queue

Callers 5

InsertTupleRowMethod · 0.45
EnqueueRangesMethod · 0.45
TestIntFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestIntFunction · 0.36