Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
Modifier and Type | Method and Description |
---|---|
<T> GeoResults<T> |
MongoTemplate.geoNear(NearQuery near,
Class<T> entityClass) |
<T> GeoResults<T> |
MongoOperations.geoNear(NearQuery near,
Class<T> entityClass)
Returns
GeoResults for all entities matching the given NearQuery . |
<T> GeoResults<T> |
MongoTemplate.geoNear(NearQuery near,
Class<T> entityClass,
String collectionName) |
<T> GeoResults<T> |
MongoOperations.geoNear(NearQuery near,
Class<T> entityClass,
String collectionName)
Returns
GeoResults for all entities matching the given NearQuery . |
Modifier and Type | Method and Description |
---|---|
static GeoNearOperation |
Aggregation.geoNear(NearQuery query,
String distanceField)
|
Constructor and Description |
---|
GeoNearOperation(NearQuery nearQuery,
String distanceField)
Creates a new
GeoNearOperation from the given NearQuery and the given distance field. |
Modifier and Type | Method and Description |
---|---|
NearQuery |
NearQuery.distanceMultiplier(double distanceMultiplier)
Configures a
CustomMetric with the given multiplier. |
NearQuery |
NearQuery.distanceMultiplier(Metric metric)
Deprecated.
use
in(Metric) instead. |
NearQuery |
NearQuery.in(Metric metric)
Will cause the results' distances being returned in the given metric.
|
NearQuery |
NearQuery.inKilometers()
Will cause the results' distances being returned in kilometers.
|
NearQuery |
NearQuery.inMiles()
Will cause the results' distances being returned in miles.
|
NearQuery |
NearQuery.maxDistance(Distance distance)
Sets the maximum distance to the given
Distance . |
NearQuery |
NearQuery.maxDistance(double maxDistance)
Sets the max distance results shall have from the configured origin.
|
NearQuery |
NearQuery.maxDistance(double maxDistance,
Metric metric)
Sets the maximum distance supplied in a given metric.
|
NearQuery |
NearQuery.minDistance(Distance distance)
Sets the minimum distance to the given
Distance . |
NearQuery |
NearQuery.minDistance(double minDistance)
Sets the minimum distance results shall have from the configured origin.
|
NearQuery |
NearQuery.minDistance(double minDistance,
Metric metric)
Sets the minimum distance supplied in a given metric.
|
static NearQuery |
NearQuery.near(double x,
double y)
Creates a new
NearQuery starting near the given coordinates. |
static NearQuery |
NearQuery.near(double x,
double y,
Metric metric)
|
static NearQuery |
NearQuery.near(Point point)
|
static NearQuery |
NearQuery.near(Point point,
Metric metric)
|
NearQuery |
NearQuery.num(int num)
Configures the maximum number of results to return.
|
NearQuery |
NearQuery.query(Query query)
Adds an actual query to the
NearQuery to restrict the objects considered for the actual near operation. |
NearQuery |
NearQuery.skip(int skip)
Configures the number of results to skip.
|
NearQuery |
NearQuery.spherical(boolean spherical)
Configures whether to return spherical values for the actual distance.
|
NearQuery |
NearQuery.with(Pageable pageable)
Configures the
Pageable to use. |
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.