public class GeoDistanceOrder extends Order
Sort.Order derived class to be able to define a _geo_distance order for a
search.| Modifier and Type | Class and Description |
|---|---|
static class |
GeoDistanceOrder.DistanceType |
Order.Mode| Modifier and Type | Field and Description |
|---|---|
static GeoDistanceOrder.DistanceType |
DEFAULT_DISTANCE_TYPE |
static Boolean |
DEFAULT_IGNORE_UNMAPPED |
static String |
DEFAULT_UNIT |
DEFAULT_MODE, DEFAULT_NULL_HANDLING, mode, unmappedType| Constructor and Description |
|---|
GeoDistanceOrder(String property,
GeoPoint geoPoint) |
| Modifier and Type | Method and Description |
|---|---|
GeoDistanceOrder.DistanceType |
getDistanceType() |
GeoPoint |
getGeoPoint() |
Boolean |
getIgnoreUnmapped() |
Order.Mode |
getMode() |
String |
getUnit() |
String |
toString() |
GeoDistanceOrder |
with(GeoDistanceOrder.DistanceType distanceType) |
GeoDistanceOrder |
with(Order.Mode mode) |
GeoDistanceOrder |
with(org.springframework.data.domain.Sort.Direction direction) |
GeoDistanceOrder |
with(org.springframework.data.domain.Sort.NullHandling nullHandling) |
GeoDistanceOrder |
withIgnoreUnmapped(Boolean ignoreUnmapped) |
GeoDistanceOrder |
withProperty(String property) |
GeoDistanceOrder |
withUnit(String unit) |
getUnmappedType, withUnmappedTypepublic static final GeoDistanceOrder.DistanceType DEFAULT_DISTANCE_TYPE
public static final String DEFAULT_UNIT
public static final Boolean DEFAULT_IGNORE_UNMAPPED
public GeoPoint getGeoPoint()
public GeoDistanceOrder.DistanceType getDistanceType()
public Order.Mode getMode()
public String getUnit()
public Boolean getIgnoreUnmapped()
public GeoDistanceOrder withProperty(String property)
withProperty in class Orderpublic GeoDistanceOrder with(org.springframework.data.domain.Sort.Direction direction)
public GeoDistanceOrder with(org.springframework.data.domain.Sort.NullHandling nullHandling)
public GeoDistanceOrder with(GeoDistanceOrder.DistanceType distanceType)
public GeoDistanceOrder with(Order.Mode mode)
public GeoDistanceOrder withUnit(String unit)
public GeoDistanceOrder withIgnoreUnmapped(Boolean ignoreUnmapped)
public String toString()
toString in class org.springframework.data.domain.Sort.OrderCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.