Method CompareTop
CompareTop(Int32)
Compare the top value with this doc. This will only invoked after SetTopValue(Object) has been called. This should return the same result as Compare(Int32, Int32) as if topValue were slot1 and the new document were slot 2. This is only called for searches that use SearchAfter (deep paging).
Declaration
public abstract override int CompareTop(int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | Doc that was hit |
Returns
Type | Description |
---|---|
System.Int32 | 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. |