java.lang.Object
org.apache.lucene.search.SortField
org.apache.lucene.spatial3d.Geo3DPointSortField
Sorts by distance from an origin location.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.SortField
SortField.Provider, SortField.Type -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final GeoDistanceShape(package private) final PlanetModelFields inherited from class org.apache.lucene.search.SortField
FIELD_DOC, FIELD_SCORE, missingValue, STRING_FIRST, STRING_LAST -
Constructor Summary
ConstructorsConstructorDescriptionGeo3DPointSortField(String field, PlanetModel planetModel, GeoDistanceShape distanceShape) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true ifois equal to this.getComparator(int numHits, Pruning pruning) Returns theFieldComparatorto use for sorting.Return the value to use for documents that don't have a value.inthashCode()Returns a hash code for thisSortFieldinstance.voidsetMissingValue(Object missingValue) Set the value to use for documents that don't have a value.toString()Methods inherited from class org.apache.lucene.search.SortField
getBytesComparator, getComparatorSource, getField, getIndexSorter, getOptimizeSortWithIndexedData, getOptimizeSortWithPoints, getReverse, getType, needsScores, readType, rewrite, setBytesComparator, setOptimizeSortWithIndexedData, setOptimizeSortWithPoints
-
Field Details
-
distanceShape
-
planetModel
-
-
Constructor Details
-
Geo3DPointSortField
Geo3DPointSortField(String field, PlanetModel planetModel, GeoDistanceShape distanceShape)
-
-
Method Details
-
getComparator
Description copied from class:SortFieldReturns theFieldComparatorto use for sorting.- Overrides:
getComparatorin classSortField- Parameters:
numHits- number of top hits the queue will storepruning- controls how can the comparator to skip documents viaLeafFieldComparator.competitiveIterator()- Returns:
FieldComparatorto use when sorting
-
getMissingValue
Description copied from class:SortFieldReturn the value to use for documents that don't have a value. A value ofnullindicates that default should be used.- Overrides:
getMissingValuein classSortField
-
setMissingValue
Description copied from class:SortFieldSet the value to use for documents that don't have a value.- Overrides:
setMissingValuein classSortField
-
hashCode
public int hashCode()Description copied from class:SortFieldReturns a hash code for thisSortFieldinstance. If aFieldComparatorSourcewas provided, it must properly implement hashCode (unless a singleton is always used). -
equals
Description copied from class:SortFieldReturns true ifois equal to this. If aFieldComparatorSourcewas provided, it must properly implement equals (unless a singleton is always used). -
toString
-