The FieldComparator type exposes the following members.
Methods
Name | Description | |
---|---|---|
BinarySearch(array<String>[]()[][], String) | ||
BinarySearch(array<String>[]()[][], String, Int32, Int32) | ||
Compare | Compare hit at slot1 with hit at slot2.
| |
CompareBottom | 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). | |
Copy | This method is called when a new hit is competitive.
You should copy any state associated with this document
that will be required for future comparisons, into the
specified slot.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetBottom | Set the bottom slot, ie the "weakest" (sorted last)
entry in the queue. When {@link #compareBottom} is
called, you should compare against this slot. This
will always be called before {@link #compareBottom}.
| |
SetNextReader | Set a new Reader. All doc correspond to the current Reader.
| |
SetScorer | Sets the Scorer to use in case a document's score is
needed.
| |
ToString | (Inherited from Object.) | |
Value | Return the actual value in the slot.
|