Package | Description |
---|---|
org.mongodb.morphia.aggregation |
Modifier and Type | Method and Description |
---|---|
static GeoNear.GeoNearBuilder |
GeoNear.builder(String distanceField) |
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setDistanceMultiplier(Double distanceMultiplier)
The factor to multiply all distances returned by the query.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setIncludeLocations(String includeLocations)
This specifies the output field that identifies the location used to calculate the distance.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setLimit(Long limit)
The maximum number of documents to return.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setMaxDistance(Double maxDistance)
A distance from the center point.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setMaxDocuments(Long num)
The maxDocuments option provides the same function as the limit option.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setNear(double latitude,
double longitude) |
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setQuery(Query query)
Limits the results to the documents that match the query.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setSpherical(Boolean spherical)
If true, MongoDB references points using a spherical surface.
|
GeoNear.GeoNearBuilder |
GeoNear.GeoNearBuilder.setUniqueDocuments(Boolean uniqueDocuments)
Deprecated.
Deprecated since server version 2.6: Geospatial queries no longer return duplicate results. The $uniqueDocs operator
has no impact on results.
|
Copyright © 2016. All rights reserved.