final class LatLonPointSortField extends SortField
SortField.Type| Modifier and Type | Field and Description |
|---|---|
(package private) double |
latitude |
(package private) double |
longitude |
FIELD_DOC, FIELD_SCORE, missingValue, STRING_FIRST, STRING_LAST| Constructor and Description |
|---|
LatLonPointSortField(java.lang.String field,
double latitude,
double longitude) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if
o is equal to this. |
FieldComparator<?> |
getComparator(int numHits,
int sortPos)
Returns the
FieldComparator to use for
sorting. |
java.lang.Double |
getMissingValue()
Return the value to use for documents that don't have a value.
|
int |
hashCode()
Returns a hash code for this
SortField instance. |
void |
setMissingValue(java.lang.Object missingValue)
Set the value to use for documents that don't have a value.
|
java.lang.String |
toString() |
getBytesComparator, getComparatorSource, getField, getReverse, getType, needsScores, rewrite, setBytesComparatorLatLonPointSortField(java.lang.String field,
double latitude,
double longitude)
public FieldComparator<?> getComparator(int numHits, int sortPos)
SortFieldFieldComparator to use for
sorting.getComparator in class SortFieldnumHits - number of top hits the queue will storesortPos - 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.FieldComparator to use when sortingpublic java.lang.Double getMissingValue()
SortFieldnull indicates that default should be used.getMissingValue in class SortFieldpublic void setMissingValue(java.lang.Object missingValue)
SortFieldsetMissingValue in class SortFieldpublic int hashCode()
SortFieldSortField instance. If a
FieldComparatorSource was provided, it must properly
implement hashCode (unless a singleton is always used).public boolean equals(java.lang.Object obj)
SortFieldo is equal to this. If a
FieldComparatorSource was provided, it must properly
implement equals (unless a singleton is always used).