Lucene.Net.Search.FieldComparator.LongComparator.CompareBottom C# (CSharp) Method

CompareBottom() public method

public CompareBottom ( int doc ) : int
doc int
return int
			public override int CompareBottom(int doc)
			{
				// TODO: there are sneaky non-branch ways to compute
				// -1/+1/0 sign
				long v2 = currentReaderValues[doc];
				if (bottom > v2)
				{
					return 1;
				}
				else if (bottom < v2)
				{
					return - 1;
				}
				else
				{
					return 0;
				}
			}