Method GetComparator
GetComparator(Int32, Int32)
Returns the Field
NOTE: This API is experimental and might change in incompatible ways in the next release.
Declaration
public virtual FieldComparator GetComparator(int numHits, int sortPos)
Parameters
Type | Name | Description |
---|---|---|
System. |
numHits | number of top hits the queue will store |
System. |
sortPos | position of this SortField within Sort . The comparator is primary if sortPos==0, secondary if sortPos==1, etc. Some comparators can optimize themselves when they are the primary sort. |
Returns
Type | Description |
---|---|
Field |
Field |