Should be called when the Object at top changes values. Still log(n) worst case, but it's at least twice as fast to
            pq.top().change();
            pq.adjustTop();
            
instead of
            o = pq.pop();
            o.change();
            pq.push(o);
            

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("use UpdateTop() which returns the new top element and saves an additional call to Top()")]
public void AdjustTop()
Visual Basic
<ObsoleteAttribute("use UpdateTop() which returns the new top element and saves an additional call to Top()")> _
Public Sub AdjustTop
Visual C++
[ObsoleteAttribute(L"use UpdateTop() which returns the new top element and saves an additional call to Top()")]
public:
void AdjustTop()

See Also