Compare hit at slot1 with hit at slot2.

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

Syntax

C#
public abstract int Compare(
	int slot1,
	int slot2
)
Visual Basic
Public MustOverride Function Compare ( _
	slot1 As Integer, _
	slot2 As Integer _
) As Integer
Visual C++
public:
virtual int Compare(
	int slot1, 
	int slot2
) abstract

Parameters

slot1
Type: System..::..Int32
first slot to compare
slot2
Type: System..::..Int32
second slot to compare

Return Value

any N < 0 if slot2's value is sorted after slot1, any N > 0 if the slot2's value is sorted before slot1 and 0 if they are equal

See Also