public class DistanceSortField extends SortField
SpatialFieldBridgeByHash
,
SpatialFieldBridgeByRange
,
Coordinates
SortField.Type
FIELD_DOC, FIELD_SCORE, missingValue, STRING_FIRST, STRING_LAST
Constructor and Description |
---|
DistanceSortField(Coordinates center,
String fieldName) |
DistanceSortField(Coordinates center,
String fieldName,
boolean reverse) |
DistanceSortField(double latitude,
double longitude,
String fieldName) |
DistanceSortField(double latitude,
double longitude,
String fieldName,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
Coordinates |
getCenter() |
equals, getBytesComparator, getComparator, getComparatorSource, getField, getReverse, getType, hashCode, needsScores, rewrite, setBytesComparator, setMissingValue, toString
public DistanceSortField(Coordinates center, String fieldName)
public DistanceSortField(double latitude, double longitude, String fieldName)
public DistanceSortField(Coordinates center, String fieldName, boolean reverse)
public DistanceSortField(double latitude, double longitude, String fieldName, boolean reverse)
public Coordinates getCenter()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved