|
Spring Data MongoDB | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NearQuery | |
---|---|
org.springframework.data.mongodb.core | MongoDB core support. |
org.springframework.data.mongodb.core.query | MongoDB specific query and update support. |
Uses of NearQuery in org.springframework.data.mongodb.core |
---|
Methods in org.springframework.data.mongodb.core with parameters of type NearQuery | ||
---|---|---|
|
MongoTemplate.geoNear(NearQuery near,
Class<T> entityClass)
|
|
|
MongoOperations.geoNear(NearQuery near,
Class<T> entityClass)
Returns GeoResult for all entities matching the given NearQuery . |
|
|
MongoTemplate.geoNear(NearQuery near,
Class<T> entityClass,
String collectionName)
|
|
|
MongoOperations.geoNear(NearQuery near,
Class<T> entityClass,
String collectionName)
Returns GeoResult for all entities matching the given NearQuery . |
Uses of NearQuery in org.springframework.data.mongodb.core.query |
---|
Methods in org.springframework.data.mongodb.core.query that return NearQuery | |
---|---|
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. |
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)
Creates a new NearQuery starting at the given coordinates using the given Metric to adapt given
values to further configuration. |
static NearQuery |
NearQuery.near(Point point)
Creates a new NearQuery starting at the given Point . |
static NearQuery |
NearQuery.near(Point point,
Metric metric)
Creates a NearQuery starting near the given Point using the given Metric to adapt given
values to further configuration. |
NearQuery |
NearQuery.num(int num)
Configures the 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.spherical(boolean spherical)
Configures whether to return spherical values for the actual distance. |
|
Spring Data MongoDB | |||||||||
PREV NEXT | FRAMES NO FRAMES |