public class GeoDistanceOrder extends Sort.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 |
static class |
GeoDistanceOrder.Mode |
| Constructor and Description |
|---|
GeoDistanceOrder(String property,
GeoPoint geoPoint) |
| Modifier and Type | Method and Description |
|---|---|
GeoDistanceOrder.DistanceType |
getDistanceType() |
GeoPoint |
getGeoPoint() |
Boolean |
getIgnoreUnmapped() |
GeoDistanceOrder.Mode |
getMode() |
String |
getUnit() |
String |
toString() |
GeoDistanceOrder |
with(GeoDistanceOrder.DistanceType distanceType) |
GeoDistanceOrder |
with(GeoDistanceOrder.Mode mode) |
GeoDistanceOrder |
with(Sort.Direction direction) |
GeoDistanceOrder |
with(Sort.NullHandling nullHandling) |
GeoDistanceOrder |
withIgnoreUnmapped(Boolean ignoreUnmapped) |
GeoDistanceOrder |
withProperty(String property) |
GeoDistanceOrder |
withUnit(String unit) |
asc, by, desc, equals, getDirection, getNullHandling, getProperty, hashCode, ignoreCase, isAscending, isDescending, isIgnoreCase, nullsFirst, nullsLast, nullsNative, withPropertiespublic GeoPoint getGeoPoint()
public GeoDistanceOrder.DistanceType getDistanceType()
public GeoDistanceOrder.Mode getMode()
public String getUnit()
public Boolean getIgnoreUnmapped()
public GeoDistanceOrder withProperty(String property)
withProperty in class Sort.Orderpublic GeoDistanceOrder with(Sort.Direction direction)
with in class Sort.Orderpublic GeoDistanceOrder with(Sort.NullHandling nullHandling)
with in class Sort.Orderpublic GeoDistanceOrder with(GeoDistanceOrder.DistanceType distanceType)
public GeoDistanceOrder with(GeoDistanceOrder.Mode mode)
public GeoDistanceOrder withUnit(String unit)
public GeoDistanceOrder withIgnoreUnmapped(Boolean ignoreUnmapped)
public String toString()
toString in class Sort.OrderCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.