The FieldComparator type exposes the following members.

Methods

  NameDescription
Protected methodStatic memberBinarySearch(array<String>[]()[][], String)
Protected methodStatic memberBinarySearch(array<String>[]()[][], String, Int32, Int32)
Public methodCompare
Compare hit at slot1 with hit at slot2.
Public methodCompareBottom
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).

Public methodCopy
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.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetBottom
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}.
Public methodSetNextReader
Set a new Reader. All doc correspond to the current Reader.
Public methodSetScorer
Sets the Scorer to use in case a document's score is needed.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodValue
Return the actual value in the slot.

See Also