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, getStatespublic ConnectedSortDistanceFieldContext(QueryBuildingContext queryContext, SortFieldStates states)
public SortDistanceFieldAndReferenceContext fromCoordinates(Coordinates coordinates)
SortDistanceFieldContextCoordinates.fromCoordinates in interface SortDistanceFieldContextcoordinates - The reference coordinates to which the distance
will be computed for each document.public SortLatLongContext fromLatitude(double latitude)
SortDistanceFieldContextsubsequently-defined longitude.fromLatitude in interface SortDistanceFieldContextlatitude - The reference latitude, part of the coordinates
to which the distance will be computed for each document.public SortDistanceFieldAndReferenceContext andLongitude(double longitude)
SortLatLongContextformerly-defined latitude.andLongitude in interface SortLatLongContextlongitude - The reference longitude, part of the coordinates
to which the distance will be computed for each document.Copyright © 2006–2016 Hibernate. All rights reserved.