Spring Data Document

Uses of Class
org.springframework.data.mongodb.core.query.NearQuery

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
<T> GeoResults<T>
MongoTemplate.geoNear(NearQuery near, Class<T> entityClass)
           
<T> GeoResults<T>
MongoOperations.geoNear(NearQuery near, Class<T> entityClass)
          Returns GeoResult 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 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 distance multiplier the resulting distances get applied.
 NearQuery NearQuery.distanceMultiplier(Metric metric)
          Configures the distance multiplier to the multiplier of 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 Document

Copyright © 2012. All Rights Reserved.