Compare the bottom of the queue with doc. This will
only invoked after setBottom has been called. This
should return the same result as {@link
#Compare(int,int)}} as if bottom were slot1 and the new
document were slot 2.
For a search that hits many results, this method
will be the hotspot (invoked by far the most
frequently).
Namespace: Lucene.Net.SearchAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public abstract int CompareBottom(
int doc
) |
Visual Basic |
---|
Public MustOverride Function CompareBottom ( _
doc As Integer _
) As Integer |
Visual C++ |
---|
public:
virtual int CompareBottom(
int doc
) abstract |
Return Value
any N < 0 if the doc's value is sorted after
the bottom entry (not competitive), any N > 0 if the
doc's value is sorted before the bottom entry and 0 if
they are equal.
See Also