Uses of Class
org.springframework.data.mongodb.core.query.NearQuery
Package
Description
MongoDB core support.
Support for the MongoDB aggregation framework.
MongoDB specific query and update support.
-
Uses of NearQuery in org.springframework.data.mongodb.core
Modifier and TypeMethodDescription<T> org.springframework.data.geo.GeoResults<T>
Deprecated.since 2.2.<T> org.springframework.data.geo.GeoResults<T>
Deprecated.since 2.2.<T> org.springframework.data.geo.GeoResults<T>
MongoTemplate.geoNear
(NearQuery near, Class<?> domainType, String collectionName, Class<T> returnType) <T> org.springframework.data.geo.GeoResults<T>
<T> org.springframework.data.geo.GeoResults<T>
<T> reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<T>>
Deprecated.since 2.2.<T> reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<T>>
Deprecated.since 2.2.protected <T> reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<T>>
ReactiveMongoTemplate.geoNear
(NearQuery near, Class<?> entityClass, String collectionName, Class<T> returnType) <T> reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<T>>
<T> reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<T>>
Set the filter query for the geoNear execution.Set the filter query for the geoNear execution. -
Uses of NearQuery in org.springframework.data.mongodb.core.aggregation
ModifierConstructorDescriptionGeoNearOperation
(NearQuery nearQuery, String distanceField) Creates a newGeoNearOperation
from the givenNearQuery
and the given distance field. -
Uses of NearQuery in org.springframework.data.mongodb.core.query
Modifier and TypeMethodDescriptionNearQuery.distanceMultiplier
(double distanceMultiplier) Configures aCustomMetric
with the given multiplier.NearQuery.in
(org.springframework.data.geo.Metric metric) Will cause the results' distances being returned in the given metric.NearQuery.inKilometers()
Will cause the results' distances being returned in kilometers.NearQuery.inMiles()
Will cause the results' distances being returned in miles.NearQuery.limit
(long limit) Configures the maximum number of results to return.NearQuery.maxDistance
(double maxDistance) Sets the max distance results shall have from the configured origin.NearQuery.maxDistance
(double maxDistance, org.springframework.data.geo.Metric metric) Sets the maximum distance supplied in a given metric.NearQuery.maxDistance
(org.springframework.data.geo.Distance distance) Sets the maximum distance to the givenDistance
.NearQuery.minDistance
(double minDistance) Sets the minimum distance results shall have from the configured origin.NearQuery.minDistance
(double minDistance, org.springframework.data.geo.Metric metric) Sets the minimum distance supplied in a given metric.NearQuery.minDistance
(org.springframework.data.geo.Distance distance) Sets the minimum distance to the givenDistance
.static NearQuery
NearQuery.near
(double x, double y) Creates a newNearQuery
starting near the given coordinates.static NearQuery
NearQuery.near
(double x, double y, org.springframework.data.geo.Metric metric) Creates a newNearQuery
starting at the given coordinates using the givenMetric
to adapt given values to further configuration.static NearQuery
NearQuery.near
(org.springframework.data.geo.Point point) Creates a newNearQuery
starting at the givenPoint
.static NearQuery
NearQuery.near
(org.springframework.data.geo.Point point, org.springframework.data.geo.Metric metric) Creates aNearQuery
starting near the givenPoint
using the givenMetric
to adapt given values to further configuration.Adds an actual query to theNearQuery
to restrict the objects considered for the actual near operation.NearQuery.skip
(long skip) Configures the number of results to skip.NearQuery.spherical
(boolean spherical) Configures whether to return spherical values for the actual distance.NearQuery.with
(org.springframework.data.domain.Pageable pageable) Configures thePageable
to use.