public class ConnectedSortDistanceFieldContext extends AbstractConnectedSortContext implements SortDistanceFieldContext, SortLatLongContext
queryContext, states
Constructor and Description |
---|
ConnectedSortDistanceFieldContext(QueryBuildingContext queryContext,
SortFieldStates states) |
Modifier and Type | Method and Description |
---|---|
SortDistanceFieldAndReferenceContext |
andLongitude(double longitude)
Sort by the distance to the given longitude
and
formerly-defined latitude . |
SortDistanceFieldAndReferenceContext |
fromCoordinates(Coordinates coordinates)
Sort by the distance to the given
Coordinates . |
SortLatLongContext |
fromLatitude(double latitude)
Sort by the distance to the given latitude
and
subsequently-defined longitude . |
getQueryContext, getStates
public ConnectedSortDistanceFieldContext(QueryBuildingContext queryContext, SortFieldStates states)
public SortDistanceFieldAndReferenceContext fromCoordinates(Coordinates coordinates)
SortDistanceFieldContext
Coordinates
.fromCoordinates
in interface SortDistanceFieldContext
coordinates
- The reference coordinates to which the distance
will be computed for each document.public SortLatLongContext fromLatitude(double latitude)
SortDistanceFieldContext
subsequently-defined longitude
.fromLatitude
in interface SortDistanceFieldContext
latitude
- The reference latitude, part of the coordinates
to which the distance will be computed for each document.public SortDistanceFieldAndReferenceContext andLongitude(double longitude)
SortLatLongContext
formerly-defined latitude
.andLongitude
in interface SortLatLongContext
longitude
- The reference longitude, part of the coordinates
to which the distance will be computed for each document.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved